diff --git a/application/migrations/228_rename_satellites.php b/application/migrations/228_rename_satellites.php index 7bbec00d5..292fadf15 100644 --- a/application/migrations/228_rename_satellites.php +++ b/application/migrations/228_rename_satellites.php @@ -120,7 +120,7 @@ class Migration_rename_satellites extends CI_Migration { ); public function up() { - $this->add_ix('HRD_IDX_COL_SAT_NAME','`COL_SAT_NAME`'); + $this->add_ix('TMP_HRD_IDX_COL_SAT_NAME','`COL_SAT_NAME`'); if ($this->db->table_exists('satellite')) { foreach ($this->satellites as $exportname => $name) { @@ -165,11 +165,11 @@ class Migration_rename_satellites extends CI_Migration { ); $this->dbforge->modify_column('satellite', $fields); } - $this->rm_ix('HRD_IDX_COL_SAT_NAME'); + $this->rm_ix('TMP_HRD_IDX_COL_SAT_NAME'); } public function down() { - $this->add_ix('HRD_IDX_COL_SAT_NAME','`COL_SAT_NAME`'); + $this->add_ix('TMP_HRD_IDX_COL_SAT_NAME','`COL_SAT_NAME`'); if ($this->db->table_exists('satellite')) { $fields = array( @@ -193,7 +193,7 @@ class Migration_rename_satellites extends CI_Migration { } $this->remove_sat("SONATE"); $this->remove_sat("MO-122"); - $this->rm_ix('HRD_IDX_COL_SAT_NAME'); + $this->rm_ix('TMP_HRD_IDX_COL_SAT_NAME'); } function update_sat_table($from, $to) {