修改考试设置表格
This commit is contained in:
1 parent
acd4180181
commit
a30ed5b256
146 files changed
+3216
-2782
No files matched your search
@@ -1,44 +0,0 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
|
||||
class KaoshiNianji extends Migrator
|
||||
{
|
||||
/**
|
||||
* Change Method.
|
||||
*
|
||||
* Write your reversible migrations using this method.
|
||||
*
|
||||
* More information on writing migrations is available here:
|
||||
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
|
||||
*
|
||||
* The following commands can be used in this method and Phinx will
|
||||
* automatically reverse them when rolling back:
|
||||
*
|
||||
* createTable
|
||||
* renameTable
|
||||
* addColumn
|
||||
* renameColumn
|
||||
* addIndex
|
||||
* addForeignKey
|
||||
*
|
||||
* Remember to call "create()" or "update()" and NOT "save()" when working
|
||||
* with the Table class.
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
// 定义数据表名称
|
||||
$table = $this->table('kaoshi_nianji');
|
||||
|
||||
// 添加当前表字段
|
||||
$table
|
||||
->addColumn('kaoshiid','integer',['limit'=>11,'null'=>false,'comment'=>'考试id'])
|
||||
->addColumn('nianji','integer',['limit'=>80,'null'=>false,'comment'=>'年级'])
|
||||
->addColumn('nianjiname','string',['limit'=>10,'null'=>false,'comment'=>'年级名'])
|
||||
->addColumn('create_time','integer',['limit'=>11,'null'=>true,'comment'=>'创建时间'])
|
||||
->addColumn('update_time','integer',['limit'=>11,'null'=>true,'comment'=>'更新时间'])
|
||||
->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间'])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
+7
-5
@@ -3,7 +3,7 @@
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
|
||||
class KaoshiSubject extends Migrator
|
||||
class KaoshiSet extends Migrator
|
||||
{
|
||||
/**
|
||||
* Change Method.
|
||||
@@ -29,16 +29,18 @@ class KaoshiSubject extends Migrator
|
||||
public function change()
|
||||
{
|
||||
// 定义数据表名称
|
||||
$table = $this->table('kaoshi_subject');
|
||||
$table = $this->table('kaoshi_set');
|
||||
|
||||
// 添加当前表字段
|
||||
$table
|
||||
->addColumn('kaoshiid','integer',['limit'=>11,'null'=>false,'comment'=>'考试id'])
|
||||
->addColumn('subjectid','integer',['limit'=>11,'null'=>false,'comment'=>'学科id'])
|
||||
->addColumn('lieming','string',['limit'=>11,'null'=>false,'comment'=>'列名'])
|
||||
->addColumn('kaoshi_id','integer',['limit'=>11,'null'=>false,'comment'=>'考试id'])
|
||||
->addColumn('nianji','integer',['limit'=>80,'null'=>false,'comment'=>'年级'])
|
||||
->addColumn('nianjiname','string',['limit'=>10,'null'=>false,'comment'=>'年级名'])
|
||||
->addColumn('subject_id','integer',['limit'=>11,'null'=>false,'comment'=>'学科id'])
|
||||
->addColumn('manfen','integer',['limit'=>3,'null'=>false,'comment'=>'满分'])
|
||||
->addColumn('youxiu','integer',['limit'=>3,'null'=>false,'comment'=>'优秀'])
|
||||
->addColumn('jige','integer',['limit'=>3,'null'=>false,'comment'=>'及格'])
|
||||
->addColumn('status','boolean',['default'=>1,'null'=>false,'comment'=>'状态'])
|
||||
->addColumn('create_time','integer',['limit'=>11,'null'=>true,'comment'=>'创建时间'])
|
||||
->addColumn('update_time','integer',['limit'=>11,'null'=>true,'comment'=>'更新时间'])
|
||||
->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间'])
|
||||
@@ -97,7 +97,7 @@ class Rule extends Seeder
|
||||
['title'=>'更新','name'=>'Kaoshi/Index/update','paixu'=>4,'pid'=>301,],
|
||||
['title'=>'保存','name'=>'Kaoshi/Index/save','paixu'=>5,'pid'=>301,],
|
||||
['title'=>'状态','name'=>'Kaoshi/Index/setStatus','paixu'=>6,'pid'=>301],
|
||||
['title'=>'设置','name'=>'Kaoshi/Index/kaoshiset','paixu'=>7,'pid'=>301],
|
||||
['title'=>'设置','name'=>'Kaoshi/KaoshiSubject/index','paixu'=>7,'pid'=>301],
|
||||
// 考试操作
|
||||
['title'=>'生成考号','name'=>'kaoshi/Kaohao/create','paixu'=>1,'pid'=>302],
|
||||
['title'=>'已录成绩数量','name'=>'Chengji/Tongji/yiluCnt','paixu'=>2,'pid'=>302],
|
||||
|
||||
Reference in new issue
Block a user