[Claude Workbench] Initial commit - preserving existing code
This commit is contained in:
22
V3__add_is_deleted_to_new_tables.sql
Normal file
22
V3__add_is_deleted_to_new_tables.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
-- =================================================================
|
||||
-- V3: 为AI任务与积分系统的新表添加逻辑删除字段
|
||||
-- 时间: 2025-10-19
|
||||
-- 描述: 补充 V2 脚本中遗漏的 is_deleted 字段,保持与项目其他表的一致性。
|
||||
-- =================================================================
|
||||
|
||||
-- 为 points_config 表添加逻辑删除字段
|
||||
ALTER TABLE `points_config`
|
||||
ADD COLUMN `is_deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除标识' AFTER `update_time`;
|
||||
|
||||
-- 为 points_consumption_log 表添加逻辑删除字段
|
||||
ALTER TABLE `points_consumption_log`
|
||||
ADD COLUMN `is_deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除标识' AFTER `create_time`;
|
||||
|
||||
-- 为 system_config 表添加逻辑删除字段
|
||||
ALTER TABLE `system_config`
|
||||
ADD COLUMN `is_deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除标识' AFTER `update_time`;
|
||||
|
||||
-- =================================================================
|
||||
-- V3脚本结束
|
||||
-- =================================================================
|
||||
|
||||
Reference in New Issue
Block a user