1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-24 08:51:43 +08:00
course-tencent-cloud/db/migrations/20210215034511_schema_202102151230.php
koogua 0336a54911 1.源文件增加版权信息
2.群组状态和课程协同
2021-06-13 15:49:47 +08:00

34 lines
804 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
use Phinx\Db\Adapter\MysqlAdapter;
class Schema202102151230 extends Phinx\Migration\AbstractMigration
{
public function up()
{
$this->table('kg_task')
->addColumn('max_try_count', 'integer', [
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '最大尝试数',
'after' => 'try_count',
])->save();
}
public function down()
{
$this->table('kg_task')
->removeColumn('max_try_count')
->save();
}
}