Added a migration file to create a description in the api table to start #287
这个提交包含在:
父节点
2641634892
当前提交
d6b447ea1f
共有 2 个文件被更改,包括 20 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 19;
|
$config['migration_version'] = 20;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_apikeydesc extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$user_fields = array(
|
||||||
|
'description VARCHAR(255) DEFAULT NULL'
|
||||||
|
);
|
||||||
|
$this->dbforge->add_column('api', $user_fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$this->dbforge->drop_column('api', 'description');
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用