beckenrode / mysql-workbench-export-laravel-5-migrations

A MySQL Workbench plugin which exports a Model to Laravel 5 Migrations
MIT License
898 stars 236 forks source link

fixed table columns not exporting #43

Closed robvankeilegom closed 7 years ago

robvankeilegom commented 7 years ago

Don't ask me why but for some reason the following did not work even though the col had a name attribute: if hasattr(col, 'name'): continue So i switched it out for a try catch, which will catch the error if there is no name attribute.

Tijawk commented 7 years ago

Works fine ! thank's

Edit: I have detected a little bug : the migration filename and the table name don't match Exemple of a generated migration : templates_table.php =/= create('jobs', ...) sans titre

I don't know if this is due to your changes. I have fixed this manually.

pozzguo commented 7 years ago

Fine! Good Job! Now, works to me.

beckenrode commented 7 years ago

Thanks! Nice Work!