![]() |
Hello,
I am using migrations to insert users from another application to shield users table. I need to preserve the previous id value and insert it as the current id. shield will not allow me to replace the primary key id with current value. I cannot get this to work. Code: $user = new User([
Do not use the Model. CodeIgniter Model dose not permit to change the id.
Use Query Builder. https://codeigniter.com/user_guide/datab...ilder.html |
Welcome Guest, Not a member yet? Register Sign In |