refactor: 处理优化migration文件与model文件字段不一致

This commit is contained in:
2025-06-12 17:41:14 +08:00
parent c8284568aa
commit a8f3aa3a1b
13 changed files with 58 additions and 19 deletions

View File

@@ -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();
}
}