0
This commit is contained in:
1 parent
bb550b6575
commit
195abb2ba2
2 files changed
+12
-3
No files matched your search
@@ -27,8 +27,6 @@ class KeChengBiaoTemp extends Migrator
|
||||
* with the Table class.
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
public function change()
|
||||
{
|
||||
// 定义数据表名称
|
||||
$table = $this->table('ke_cheng_biao_temp');
|
||||
@@ -44,5 +42,4 @@ class KeChengBiaoTemp extends Migrator
|
||||
->addColumn('beizhu','string',['limit'=>80,'null'=>true,'comment'=>'备注'])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,18 @@ class FenGong extends Migrator
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
// 定义数据表名称
|
||||
$table = $this->table('ke_cheng_biao_temp');
|
||||
|
||||
// 添加当前表字段
|
||||
$table
|
||||
->addColumn('banji_id','integer',['limit'=>11,'null'=>true,'comment'=>'学科ID'])
|
||||
->addColumn('subject_id','integer',['limit'=>11,'null'=>true,'comment'=>'学科ID'])
|
||||
->addColumn('teacher_id','integer',['limit'=>11,'null'=>true,'comment'=>'教师ID'])
|
||||
->addColumn('create_time','integer',['limit'=>11,'default'=>'1539158918','null'=>false,'comment'=>'创建时间'])
|
||||
->addColumn('update_time','integer',['limit'=>11,'default'=>'1539158918','null'=>false,'comment'=>'更新时间'])
|
||||
->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间'])
|
||||
->addColumn('beizhu','string',['limit'=>80,'null'=>true,'comment'=>'备注'])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user