mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Prefix tmp indexes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user