Remove static table name from migrations

这个提交包含在:
Tobias Mädel 2019-07-24 10:33:10 +02:00
父节点 f181529602
当前提交 eac07da0c0
共有 2 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -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()