pwweb / artomator

Artomator: Custom commands making life easier for Laravel.
MIT License
4 stars 1 forks source link

Type issue for Unsigned Int when using Table option #9

Closed rabrowne85 closed 5 years ago

rabrowne85 commented 5 years ago

When using the table option to inspect an existing table and the table structure has an int unsigned type, the Type, Migration and Query generate incorrectly.

Expected outcome (for Query):

'orders_id' => ['name' => 'orders_id', 'type' => Type::int()],

Actual outcome (for Query):

'orders_id' => ['name' => 'orders_id', 'type' => Type::int unsigned()],

A similar issue is present in the Type and Migration files.

N.B. the migration should go to integer() and the others should go to int()

rabrowne85 commented 5 years ago

Updated the code for the latest release v.0.2.0-beta. Hopefully this should be now corrected. There may be other cases in the future that need to be captured and "translated"