Fixed issue where FORCE_INT and SWL columns where incorrectly setup by the old HRD schema.
这个提交包含在:
父节点
8f4e10dffa
当前提交
2641634892
共有 2 个文件被更改,包括 30 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 18;
|
||||
$config['migration_version'] = 19;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_forceint_wrongtype extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$fields = array(
|
||||
'COL_FORCE_INIT' => array(
|
||||
'name' => 'COL_FORCE_INIT',
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '2',
|
||||
),
|
||||
|
||||
'COL_SWL' => array(
|
||||
'name' => 'COL_SWL',
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '2',
|
||||
),
|
||||
);
|
||||
$this->dbforge->modify_column('TABLE_HRD_CONTACTS_V01', $fields);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "Not possible, sorry.";
|
||||
}
|
||||
}
|
||||
正在加载…
在新工单中引用