-
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 'main' into jl_MR-3561_validate_prisma_to_domain_model_f…
…unctions # Conflicts: # services/app-api/src/domain-models/contractAndRates/contractType.ts # services/app-api/src/postgres/contractAndRates/findContractWithHistory.ts # services/app-api/src/postgres/contractAndRates/prismaToDomainModel.test.ts # services/app-api/src/postgres/contractAndRates/prismaToDomainModel.ts
- Loading branch information
Showing
9 changed files
with
38 additions
and
27 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...ions/20230713173904_move_addtl_actuary_and_comm_preference_to_rate_revision/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,30 @@ | ||
BEGIN; | ||
/* | ||
Warnings: | ||
- You are about to drop the column `contractRevisionID` on the `ActuaryContact` table. All the data in the column will be lost. | ||
- You are about to drop the column `rateRevisionID` on the `ActuaryContact` table. All the data in the column will be lost. | ||
- You are about to drop the column `addtlActuaryCommunicationPreference` on the `ContractRevisionTable` table. All the data in the column will be lost. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "ActuaryContact" DROP CONSTRAINT "ActuaryContact_contractRevisionID_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "ActuaryContact" DROP CONSTRAINT "ActuaryContact_rateRevisionID_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "ActuaryContact" DROP COLUMN "contractRevisionID", | ||
DROP COLUMN "rateRevisionID", | ||
ADD COLUMN "rateWithAddtlActuaryID" TEXT, | ||
ADD COLUMN "rateWithCertifyingActuaryID" TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "ContractRevisionTable" DROP COLUMN "addtlActuaryCommunicationPreference"; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "ActuaryContact" ADD CONSTRAINT "ActuaryContact_rateWithCertifyingActuaryID_fkey" FOREIGN KEY ("rateWithCertifyingActuaryID") REFERENCES "RateRevisionTable"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "ActuaryContact" ADD CONSTRAINT "ActuaryContact_rateWithAddtlActuaryID_fkey" FOREIGN KEY ("rateWithAddtlActuaryID") REFERENCES "RateRevisionTable"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
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
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
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