fix bugs
This commit is contained in:
19
doc/sql/mysql/martial-add-status-column.sql
Normal file
19
doc/sql/mysql/martial-add-status-column.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- 添加缺失的 status 字段到4张表
|
||||
-- 生成时间: 2025-11-29
|
||||
-- 说明: 所有继承 TenantEntity 的实体类都需要 status 字段
|
||||
|
||||
-- 1. martial_athlete 表添加 status 字段
|
||||
ALTER TABLE martial_athlete
|
||||
ADD COLUMN status int DEFAULT 1 COMMENT '状态(1-启用,2-禁用)' AFTER update_time;
|
||||
|
||||
-- 2. martial_live_update 表添加 status 字段
|
||||
ALTER TABLE martial_live_update
|
||||
ADD COLUMN status int DEFAULT 1 COMMENT '状态(1-启用,2-禁用)' AFTER update_time;
|
||||
|
||||
-- 3. martial_result 表添加 status 字段
|
||||
ALTER TABLE martial_result
|
||||
ADD COLUMN status int DEFAULT 1 COMMENT '状态(1-启用,2-禁用)' AFTER update_time;
|
||||
|
||||
-- 4. martial_schedule_athlete 表添加 status 字段
|
||||
ALTER TABLE martial_schedule_athlete
|
||||
ADD COLUMN status int DEFAULT 1 COMMENT '状态(1-启用,2-禁用)' AFTER update_time;
|
||||
Reference in New Issue
Block a user