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

->unique() not added to migration #61

Open wemersonrv opened 6 years ago

wemersonrv commented 6 years ago

Hi,

->unique() not added to migration.

Using MySQL Workbench 6.3.10 and latest version of plugin

VeeeneX commented 5 years ago

@wemersonrv That's true because indexes are treated separately by adding:

$table->unique(["unique_column"], 'unique_column_UNIQUE');