迁移:将DB变更记录SQL文件移动到sql目录下

This commit is contained in:
2026-01-13 10:05:32 +08:00
parent cb268fe26d
commit ebd2e8aa75
131 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
DROP INDEX "reconciliation_id_index";
DROP INDEX "type_code_index";
ALTER TABLE "fin_payment_rec_static"
ALTER COLUMN "reconciliation_id" SET NOT NULL,
ALTER COLUMN "type_code" SET NOT NULL;
CREATE INDEX "reconciliation_id_index" ON "fin_payment_rec_static" USING btree (
"reconciliation_id"
);
CREATE INDEX "type_code_index" ON "fin_payment_rec_static" USING btree (
"type_code"
);
COMMENT ON INDEX "reconciliation_id_index" IS '付款id';
COMMENT ON INDEX "type_code_index" IS '分类类型';
-- 向迁移历史表插入记录
INSERT INTO __MigrationsHistory (MigrationId, ProductVersion)
VALUES ('202508081601 fin_payment_rec_static', '1.0.0');