Created mirgration file to change the logbook table field COL_QSL_VIA from 60 char to 255
这个提交包含在:
父节点
08c1e56a97
当前提交
9fb7d82702
共有 3 个文件被更改,包括 20 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 16;
|
||||
$config['migration_version'] = 17;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
if ( ! $this->migration->latest()) {
|
||||
show_error($this->migration->error_string());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} ?>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
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->db_debug = true;
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "Not possible, sorry.";
|
||||
}
|
||||
}
|
||||
正在加载…
在新工单中引用