mysql-workbench-export-laravel-5-migrations
mysql-workbench-export-laravel-5-migrations copied to clipboard
A MySQL Workbench plugin which exports a Model to Laravel 5 Migrations
If you have multiple `unique` indexes on a table, then this plugin incorrectly concatenates them, instead of creating separate indexes. ``` $table->unique(["email", "username", "uuid"], 'unique_users'); ``` The problem here is...
Mention in https://github.com/beckenrode/mysql-workbench-export-laravel-5-migrations/issues/18#issuecomment-276653179
Hi, I noticed that the generator seems not handling the case of unique index on multiple columns will generate ```php $table->unique('api_key'); $table->unique('api_secret'); ``` rather than ```php $table->unique(['api_key','api_secret']); ```
I am running laravel 10. the plugin works pefect with my workbench installed on ubuntu. The migration export works great as i have the ability to export to folder -...
… ->add drop if exists ->add disable foreignKeyConstraints before migration ->enable foreignKeyConstraints after migration