Added extra fields

这个提交包含在:
Peter Goodhall 2019-09-23 16:34:18 +01:00
父节点 e15f3cdde2
当前提交 1c3dc32c23
共有 3 个文件被更改,包括 42 次插入1 次删除

查看文件

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 30;
$config['migration_version'] = 32;
/*
|--------------------------------------------------------------------------

查看文件

@ -0,0 +1,21 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_station_id_to_logbook extends CI_Migration {
public function up()
{
$fields = array(
'station_id int(11) DEFAULT NULL',
);
$this->dbforge->add_column($this->config->item('table_name'), $fields);
}
public function down()
{
echo "not possible";
}
}

查看文件

@ -0,0 +1,20 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_station_active extends CI_Migration {
public function up()
{
$fields = array(
'station_active tinyint(1) DEFAULT NULL',
);
$this->dbforge->add_column('station_profile', $fields);
}
public function down()
{
$this->dbforge->drop_column('station_profile', 'station_active');
}
}