修改学生列表错误
This commit is contained in:
1 parent
77c963b73d
commit
9ded4f2ff4
6 files changed
+8
-5
No files matched your search
@@ -47,7 +47,7 @@ class Student extends Migrator
|
||||
->addColumn('kaoshi','boolean',['limit'=>1,'default'=>1,'null'=>false,'comment'=>'是否参加考试'])
|
||||
->addColumn('quanpin','string',['limit'=>30,'default'=>'a','null'=>false,'comment'=>'全拼'])
|
||||
->addColumn('shoupin','string',['limit'=>5,'default'=>'a','null'=>false,'comment'=>'简拼'])
|
||||
->addColumn('kaohao','string',['limit'=>25,'null'=>true,'comment'=>'自定义考号'])
|
||||
->addColumn('xuehao','string',['limit'=>25,'null'=>true,'comment'=>'自定义考号'])
|
||||
->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'=>'删除时间'])
|
||||
|
||||
@@ -29,7 +29,7 @@ class AddStudentKaohao extends Migrator
|
||||
public function up()
|
||||
{
|
||||
$table = $this->table('student');
|
||||
$column = $table->hasColumn('kaohao');
|
||||
$column = $table->hasColumn('xuehao');
|
||||
if (!$column) {
|
||||
$table
|
||||
->addColumn('xuehao','string',['limit'=>25,'null'=>true,'comment'=>'自定义学号'])
|
||||
|
||||
@@ -113,9 +113,9 @@ class Category extends Seeder
|
||||
['id' => 10704,'title' => '德育副校长','p_id' => 107,'paixu' => 4,'isupdate' => 0],
|
||||
['id' => 10705,'title' => '教学主任','p_id' => 107,'paixu' => 5,'isupdate' => 0],
|
||||
['id' => 10706,'title' => '德育主任','p_id' => 107,'paixu' => 6,'isupdate' => 0],
|
||||
['id' => 10707,'title' => '教研组长','p_id' => 107,'paixu' => 7,'isupdate' => 0],
|
||||
['id' => 10708,'title' => '班主任','p_id' => 107,'paixu' => 8,'isupdate' => 0],
|
||||
['id' => 10709,'title' => '课任','p_id' => 107,'paixu' => 9,'isupdate' => 0],
|
||||
['id' => 10707,'title' => '教研组长','p_id' => 107,'paixu' => 7,'isupdate' => 0, 'status' => 0],
|
||||
['id' => 10708,'title' => '班主任','p_id' => 107,'paixu' => 8,'isupdate' => 0, 'status' => 0],
|
||||
['id' => 10709,'title' => '课任','p_id' => 107,'paixu' => 9,'isupdate' => 0, 'status' => 0],
|
||||
['id' => 107010,'title' => '其他','p_id' => 107,'paixu' => 10,'isupdate' => 0],
|
||||
|
||||
['id' => 108
|
||||
|
||||
Reference in new issue
Block a user