Welcome Guest, Not a member yet? Register   Sign In
Adding foreign key to exisiting table

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

Theme © iAndrew 2016 - Forum software by © MyBB