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');