• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Migration confusion

#8
Sorry - missed the last response.

I actually just added those new commands last night, so the latest in the develop branch has the following commands you can use during migrations:

Code:
public function up()
{
    $this->db->disableForeignKeyConstraints();

    // do your migrations here...

    $this->db->enableForeignKeyConstraints();
}
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply


Messages In This Thread
Database Migration confusion - by MeltedRolo - 04-24-2019, 06:33 AM
RE: Database Migration confusion - by php_rocs - 04-24-2019, 08:04 AM
RE: Database Migration confusion - by kilishan - 04-24-2019, 08:36 AM
RE: Database Migration confusion - by MeltedRolo - 04-24-2019, 09:57 AM
RE: Database Migration confusion - by kilishan - 04-24-2019, 10:36 AM
RE: Database Migration confusion - by MeltedRolo - 04-25-2019, 06:30 AM
RE: Database Migration confusion - by MeltedRolo - 04-25-2019, 08:54 AM
RE: Database Migration confusion - by kilishan - 06-07-2019, 07:20 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.