重新整理成绩采集

This commit is contained in:
小松树 committed 2021-02-16 18:48:56 +08:00
1 parent 81126bbb53
commit c5dfc12664
34 files changed
+1070 -628

No files matched your search

@@ -41,6 +41,16 @@ class Member extends Migrator
->addColumn('teacher_id','string',['limit'=>11,'null'=>true,'comment'=>'教师编号'])
->addColumn('school_id','integer',['limit'=>11,'null'=>false,'default'=>0,'comment'=>'所在单位'])
->addColumn('phone','string',['limit'=>11,'null'=>true,'comment'=>'联系方式'])
->addColumn('worktime','integer',['limit'=>11,'null'=>true,'comment'=>'工作时间'])
->addColumn('zhiwu_id','integer',['limit'=>11,'null'=>true,'comment'=>'职务'])
->addColumn('zhicheng_id','integer',['limit'=>11,'null'=>true,'comment'=>'职称'])
->addColumn('biye','string',['limit'=>50,'null'=>true,'comment'=>'毕业学校'])
->addColumn('zhuanye','string',['limit'=>20,'null'=>true,'comment'=>'专业'])
->addColumn('xueli_id','integer',['limit'=>11,'null'=>true,'comment'=>'学历'])
->addColumn('subject_id','integer',['limit'=>11,'null'=>true,'comment'=>'学科'])
->addColumn('quanpin','string',['limit'=>30,'default'=>'a','null'=>false,'comment'=>'全拼'])
->addColumn('shoupin','string',['limit'=>5,'default'=>'a','null'=>false,'comment'=>'简拼'])
->addColumn('tuixiu','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'是否已经退休'])
->addColumn('denglucishu','integer',['limit'=>5,'default'=>0,'null'=>false,'comment'=>'登录次数'])
->addColumn('lastip','string',['limit'=>55,'default'=>'127.0.0.1','null'=>false,'comment'=>'最后一次登录IP'])
->addColumn('ip','string',['limit'=>55,'default'=>'127.0.0.1','null'=>false,'comment'=>'登录IP'])
@@ -52,6 +62,7 @@ class Member extends Migrator
->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间'])
->addColumn('beizhu','string',['limit'=>80,'null'=>true,'comment'=>'备注'])
->addIndex(array('username'), array('unique' => true))
->addIndex(array('phone'), array('unique' => true))
->create();
}
}
@@ -1,53 +0,0 @@
<?php
use think\migration\Migrator;
use think\migration\db\Column;
class KaoshiAddUser 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 up()
{
// 定义数据表名称
$table = $this->table('kaoshi');
$table
->addColumn('user_id','integer',['after' => 'category_id','limit'=>11,'default'=>0,'null'=>false,'comment'=>'用户ID'])
->addColumn('user_group','string',['after' => 'user_id','limit'=>25,'default'=>'a','null'=>false,'comment'=>'用户组'])
->addColumn('jibie_id','integer',['after' => 'user_group','limit'=>11,'default'=>1,'null'=>false,'comment'=>'级别ID'])
->update();
}
public function down()
{
// 定义数据表名称
$table = $this->table('kaoshi');
$table
->removeColumn('user_id')
->removeColumn('user_group')
->removeColumn('jibie_id')
->update();
}
}
@@ -1,50 +0,0 @@
<?php
use think\migration\Migrator;
use think\migration\db\Column;
class RuleAddsystemreset 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 up()
{
$singleRow = [
['id' => 70502
,'title' => '初始化'
,'name' => 'system/systembase/resetmayi'
,'paixu' => 2
,'pid' => 705
],
];
$this->execute('DELETE FROM cj_auth_rule where id=707');
// this is a handy shortcut
$this->insert('auth_rule', $singleRow);
}
public function down()
{
$this->execute('DELETE FROM cj_auth_rule where id=70502');
}
}
Loaded 3 of 34 files, more files were not shown because too many files have changed in this diff. Show more