![]() |
Hello,
Hope you all doing well!,. I'm trying to modify an existing table to add a column which i need to be foreignkey to other table but it not creating. My code : PHP Code: <?php This not creating foreignkey to the leave_applications table. instead it created "leave_adjustment_emp_id_foreign". How i can solve this issue ? This creates column called "leave_application_id" but not creating foreign key, what wrong im doing here ?
(03-06-2024, 04:42 PM)kenjis Wrote: See https://codeigniter4.github.io/CodeIgnit...to-a-table So I need to add this also ? PHP Code: $this->forge->processIndexes('leave_adjustment'); |
Welcome Guest, Not a member yet? Register Sign In |