数据库迁移

This commit is contained in:
2025-11-19 14:28:00 +08:00
parent d66323487b
commit 6a287b5f9d
6 changed files with 161 additions and 32 deletions

View File

@@ -0,0 +1,13 @@
-- 000004_drop_legacy_user_order.up.sql
-- 说明:清理已废弃的 legacy 用户/订单表,保证数据库结构与现有代码一致。
BEGIN;
-- 先删除依赖度更高的订单表,再删除用户表
DROP TABLE IF EXISTS tb_order;
DROP TABLE IF EXISTS tb_user;
COMMIT;
-- 占位,避免空事务报错
SELECT 1;