refactor: 处理优化migration文件与model文件字段不一致
This commit is contained in:
@@ -42,6 +42,7 @@ class CreateSysOperateLog extends Migrator
|
||||
->addColumn('status', MysqlAdapter::PHINX_TYPE_SMALL_INTEGER, ['limit' => 5, 'default' => 200, 'comment' => '状态码'])
|
||||
->addColumn('message', MysqlAdapter::PHINX_TYPE_TEXT, ['default' => null, 'comment' => '消息'])
|
||||
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
|
||||
->addIndex(['user_id'], ['name' => 'idx_user_id'])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user