Adding foreign key to existing table using Migrations |
Have you found a solution?
I don't know why it's only possible at the creation of the table. Hey, if you want, I made this and it seems to work perfectly. PHP Code: <?php namespace App\Database; |
Messages In This Thread |
Adding foreign key to existing table using Migrations - by wntechs - 05-06-2020, 04:28 AM
RE: Adding foreign key to existing table using Migrations - by RedskyThirty - 05-06-2020, 11:55 PM
RE: Adding foreign key to existing table using Migrations - by wntechs - 05-07-2020, 12:22 AM
RE: Adding foreign key to existing table using Migrations - by RedskyThirty - 05-07-2020, 12:58 AM
RE: Adding foreign key to existing table using Migrations - by pdeddy78 - 10-25-2020, 06:44 PM
RE: Adding foreign key to existing table using Migrations - by dennysw - 12-30-2020, 09:31 PM
|