数据库迁移
This commit is contained in:
13
migrations/000004_drop_legacy_user_order.up.sql
Normal file
13
migrations/000004_drop_legacy_user_order.up.sql
Normal 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;
|
||||
Reference in New Issue
Block a user