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