Foreign key and model relation |
How to add foreign key in table in table migration and hoe to do model relation?
Try this
This works with new table PHP Code: $this->dbforge->add_field('CONSTRAINT FOREIGN KEY (id) REFERENCES table(id)'); PHP Code: $this->dbforge->add_column('table',[ |
Welcome Guest, Not a member yet? Register Sign In |