feat: 归档旧迁移文件,创建初始化数据迁移和重置脚本

This commit is contained in:
2026-04-14 11:24:35 +08:00
parent c35542f911
commit 5e9e41db21
231 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- 回滚:恢复全局索引,删除 carrier 复合索引
DROP INDEX IF EXISTS idx_iot_card_standalone_shop_carrier_created;
CREATE INDEX IF NOT EXISTS idx_iot_card_global_created_at
ON tb_iot_card (created_at DESC)
WHERE deleted_at IS NULL;
ANALYZE tb_iot_card;