How to create foreign keys - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to create foreign keys (/showthread.php?tid=66379) |
How to create foreign keys - AmitMY - 10-17-2016 Hi, I am writing a migration tool for my database, and there are some foreign keys in it. How can I create/remove foreign keys when necessary? It doesn't seem like DBFORGE is able to do that.. RE: How to create foreign keys - InsiteFX - 10-17-2016 You should be able to do it with the database query like I showed you for the create database. RE: How to create foreign keys - AmitMY - 10-18-2016 Not possible in this case unfortunately. My migration should be DB agnostic, as I have 2 main users, 1 using mysql and 1 postgres. I will create a feature request |