Laravel & InnoDB

2020-02-05 12:33发布

I am using laravel and laravel migration mechanism. I created tables and seted up foreign keys. But the tables are MyISSAM so no foreign keys are created. Where do I enable / configure this? (to change it to InnoDB and not in the mysql server).

8条回答
叼着烟拽天下
2楼-- · 2020-02-05 12:52

Use InnoDb tables on the server side it's best way to success. Use MySQL Workbench. It easy in Workbench. And, if you want read the native manual

查看更多
beautiful°
3楼-- · 2020-02-05 12:56

You can set the engine inside Schema\Table closure.

查看更多
登录 后发表回答