Fixed issue where FORCE_INT and SWL columns where incorrectly setup by the old HRD schema.

这个提交包含在:
Peter Goodhall 2019-06-30 22:02:07 +01:00
父节点 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.";
}
}