Welcome Guest, Not a member yet? Register   Sign In
edit table and add new index key with forge
#3

(12-27-2020, 08:18 AM)includebeer Wrote: According to the user guide it looks like it’s only possible when creating a table.
Quote:AddKey(): Adds a key to the set that will be used to create a table.

I guess you could execute an SQL query to create your index directly if it’s not possible with the Forge class.
YEs, i used $this->db->query to excute the raw query and create the index, it's worked! but i think CI4 should have funtion for this situation
Reply


Messages In This Thread
RE: edit table and add new index key with forge - by tmtuan - 12-27-2020, 08:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB