![]() |
I would like to be able to add foreign key to an already existing table. We are working on an application and the database is likely to change over time. The only issue is altering an exisiting table. We would have used another framework but have decided to stick with codeigniter4 due to its performance.
You can use $db->query().
See https://codeigniter4.github.io/userguide...ar-queries
This feature is added in v4.3.0.
See https://codeigniter4.github.io/userguide...html#forge Forge::processIndexes() |
Welcome Guest, Not a member yet? Register Sign In |