diff --git a/application/config/migration.php b/application/config/migration.php index fc796d783..a16f0abbc 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE; | */ -$config['migration_version'] = 189; +$config['migration_version'] = 190; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/185_harmonize_keys.php b/application/migrations/185_harmonize_keys.php index 2dbe7841a..5399163d6 100644 --- a/application/migrations/185_harmonize_keys.php +++ b/application/migrations/185_harmonize_keys.php @@ -34,7 +34,7 @@ class Migration_harmonize_keys extends CI_Migration { } public function down(){ - $this->db->query("ALTER TABLE ".$this->config->item('table_name')." ENGINE=MyISAM;"); + // $this->db->query("ALTER TABLE ".$this->config->item('table_name')." ENGINE=MyISAM;"); $this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN `station_id` `station_id` INT(11) NOT NULL;"); $this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN `COL_PRIMARY_KEY` `COL_PRIMARY_KEY` INT UNSIGNED NOT NULL AUTO_INCREMENT;"); $this->db->query("ALTER TABLE ".$this->config->item('table_name')." AUTO_INCREMENT=".$this->get_max_from_tbl($this->config->item('table_name'),"`COL_PRIMARY_KEY`").";"); diff --git a/application/migrations/190_move_to_inno.php b/application/migrations/190_move_to_inno.php new file mode 100644 index 000000000..288be2e56 --- /dev/null +++ b/application/migrations/190_move_to_inno.php @@ -0,0 +1,21 @@ +db->query("ALTER TABLE contest ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE iota ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE qsl_images ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE queries ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE themes ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE timezones ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE users ENGINE=InnoDB;"); + $this->db->query("ALTER TABLE lotw_users ENGINE=InnoDB;"); + } + + public function down(){ + // No Way back here! + } +}