For complex schema changes, ________ should be used to avoid data loss during migrations.

  • $this->db->modify()
  • $this->db->protect()
  • $this->db->update()
  • Database Seeder
In CodeIgniter, $this->db->protect() should be used for complex schema changes to avoid data loss during migrations by wrapping column and table names with backticks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *