Added migration file to create a logbook_id
这个提交包含在:
父节点
33f967d664
当前提交
3449ac627d
共有 1 个文件被更改,包括 20 次插入 和 0 次删除
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_add_column_logbookid extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$fields = array(
|
||||
'logbook_id int(11) DEFAULT NULL',
|
||||
);
|
||||
|
||||
$this->dbforge->add_column($this->config->item('table_name'), $fields);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "Not possible, sorry.";
|
||||
}
|
||||
}
|
||||
正在加载…
在新工单中引用