Merge pull request #326 from Manawyrm/master

Remove static table name from migrations
这个提交包含在:
Peter Goodhall 2019-07-24 13:31:03 +01:00 提交者 GitHub
当前提交 ecc4912ba1
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -7,7 +7,7 @@ class Migration_qslviavarchar extends CI_Migration {
public function up()
{
$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;
}

查看文件

@ -19,7 +19,7 @@ class Migration_forceint_wrongtype extends CI_Migration {
'constraint' => '2',
),
);
$this->dbforge->modify_column('TABLE_HRD_CONTACTS_V01', $fields);
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
}
public function down()