Mysql InnoDB engine in Laravel

innodb, laravel, mysql, php

Solution

You can edit your /config/database.php file, search for mysql entry and change:

`'engine' => null,`

to

`'engine' => 'InnoDB',`

This saves you from adding `$table->engine = "InnoDB";` for each of your Schemas ;)

Problem

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).

Original source