kopia lustrzana https://github.com/magicbug/Cloudlog
Remove static table name from migrations
rodzic
f181529602
commit
eac07da0c0
|
@ -7,7 +7,7 @@ class Migration_qslviavarchar extends CI_Migration {
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
$this->db->db_debug = false;
|
$this->db->db_debug = false;
|
||||||
$this->db->query("ALTER TABLE TABLE_HRD_CONTACTS_V01 CHANGE COLUMN COL_QSL_VIA COL_QSL_VIA varchar(255) DEFAULT NULL;");
|
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN COL_QSL_VIA COL_QSL_VIA varchar(255) DEFAULT NULL;");
|
||||||
$this->db->db_debug = true;
|
$this->db->db_debug = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Migration_forceint_wrongtype extends CI_Migration {
|
||||||
'constraint' => '2',
|
'constraint' => '2',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
$this->dbforge->modify_column('TABLE_HRD_CONTACTS_V01', $fields);
|
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down()
|
public function down()
|
||||||
|
|
Ładowanie…
Reference in New Issue