Migration add field and set as foreign key - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Migration add field and set as foreign key (/showthread.php?tid=90153) |
Migration add field and set as foreign key - pippuccio76 - 02-17-2024 hi , i create this migration Code: <?php RE: Migration add field and set as foreign key - kenjis - 02-17-2024 See https://codeigniter.com/user_guide/dbmgmt/forge.html#creating-tables RE: Migration add field and set as foreign key - pippuccio76 - 02-27-2024 (02-17-2024, 05:21 PM)kenjis Wrote: See https://codeigniter.com/user_guide/dbmgmt/forge.html#creating-tables i don't understand, this is another migration Code: <?php Field are added to table but not foreign key set.... RE: Migration add field and set as foreign key - kenjis - 02-27-2024 See https://codeigniter.com/user_guide/dbmgmt/forge.html#adding-keys-to-a-table RE: Migration add field and set as foreign key - pippuccio76 - 03-03-2024 (02-27-2024, 02:51 PM)kenjis Wrote: See https://codeigniter.com/user_guide/dbmgmt/forge.html#adding-keys-to-a-table Code: <?php Can't DROP 'id_user_ricevente'; check that column/key exists (the culumn exist) RE: Migration add field and set as foreign key - kenjis - 03-03-2024 Why you can't? |