-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wml-db-history' of https://github.com/Enterprise-CMCS/m…
…anaged-care-review into mcr-4014-submission-submmary-v2
- Loading branch information
Showing
68 changed files
with
1,827 additions
and
1,151 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
services/app-api/prisma/migrations/20240410060149_migrate_draft_rates/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
BEGIN; | ||
-- This migration finds all draft contract and rate revisions and makes entries in | ||
-- the DraftRateJoinTable, with their order defined by RANK | ||
INSERT INTO "DraftRateJoinTable" ("contractID", "rateID", "ratePosition") | ||
SELECT "ContractRevisionTable"."contractID", "RateRevisionTable"."rateID", RANK() OVER ( | ||
PARTITION BY "ContractRevisionTable".id | ||
ORDER BY "RateRevisionTable"."createdAt" DESC | ||
) from "ContractRevisionTable", "_ContractRevisionTableToRateTable", "RateRevisionTable" WHERE | ||
"ContractRevisionTable".id = "_ContractRevisionTableToRateTable"."A" AND | ||
"_ContractRevisionTableToRateTable"."B" = "RateRevisionTable"."rateID" AND | ||
"RateRevisionTable"."submitInfoID" IS NULL AND | ||
"ContractRevisionTable"."submitInfoID" IS NULL | ||
ON CONFLICT DO NOTHING; | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
services/app-api/src/dataMigrations/migrations/20231106200334_fix_empty_rates.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.