Skip to content

Commit

Permalink
feat(api): maisonMereAAP isMCFCompatible can be null and has no default
Browse files Browse the repository at this point in the history
  • Loading branch information
agarbe committed Oct 7, 2024
1 parent 0358861 commit c74a1a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/reva-api/modules/organism/organism.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type MaisonMereAAP {
showAccountSetup: Boolean
isActive: Boolean!
isSignalized: Boolean!
isMCFCompatible: Boolean!
isMCFCompatible: Boolean
}

enum StatutValidationInformationsJuridiquesMaisonMereAAP {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- AlterTable
ALTER TABLE "maison_mere_aap"
ALTER COLUMN "is_mcf_compatible"
DROP NOT NULL,
ALTER COLUMN "is_mcf_compatible"
DROP DEFAULT;

UPDATE "maison_mere_aap"
SET
"is_mcf_compatible" = NULL;
2 changes: 1 addition & 1 deletion packages/reva-api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ model MaisonMereAAP {
statutValidationInformationsJuridiquesMaisonMereAAP StatutValidationInformationsJuridiquesMaisonMereAAP @default(A_METTRE_A_JOUR) @map("statut_validation_informations_juridiques_maison_mere_aap")
maisonMereAAPLegalInformationDocuments MaisonMereAAPLegalInformationDocuments?
maisonMereAAPLegalInformationDocumentsDecision MaisonMereAAPLegalInformationDocumentsDecision[]
isMCFCompatible Boolean @default(false) @map("is_mcf_compatible")
isMCFCompatible Boolean? @map("is_mcf_compatible")
@@index([typologie])
@@index([gestionnaireAccountId])
Expand Down

0 comments on commit c74a1a3

Please sign in to comment.