sql-to-laravel-migrations icon indicating copy to clipboard operation
sql-to-laravel-migrations copied to clipboard

php script doesn't create foreign key restraints

Open jymden opened this issue 7 years ago • 4 comments

php script doesn't seem to create foreign keys in the generated migrations

jymden avatar Nov 19 '17 13:11 jymden

Any fresh update on foreign key constraints, please?

shahsani avatar Jan 12 '18 11:01 shahsani

@shahsani you are more than welcomed to contribute, unfortunately I am currently not working on any Laravel project so I will not be devoting time to this

aljorhythm avatar Jan 14 '18 11:01 aljorhythm

Kindly tell us how did you change the engine to InnoDB. I mean where in code you did the changes!

Thanks

RAEES


From: Christoffer Wadensten [email protected] Sent: Friday, January 12, 2018 5:02 PM To: aljorhythm/sql-to-laravel-migrations Cc: Raees Khan ShahSani; Comment Subject: Re: [aljorhythm/sql-to-laravel-migrations] php script doesn't create foreign key restraints (#4)

I solved this by changing default engine to innodb. Works well with that. Don't understand why Laravel uses myisam

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/aljorhythm/sql-to-laravel-migrations/issues/4#issuecomment-357221438, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC-Mmgym5Jw5CMYjY5evgpDjmeFfHAS8ks5tJ0ndgaJpZM4QjYW7.

shahsani avatar Jan 14 '18 11:01 shahsani

@aljorhythm indeed I want to contribute. I will, after going through the code! :-)

shahsani avatar Jan 14 '18 11:01 shahsani