Migration file added.

这个提交包含在:
Andreas 2020-09-13 13:57:21 +02:00
父节点 6e12336f89
当前提交 e487ebdd45
共有 2 个文件被更改,包括 21 次插入1 次删除

查看文件

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

查看文件

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