Add is unique in migration v2 + refactor inferDeletionFromMissingEntities (#15070)
## Goal - inferDeletionFromMissingEntities is now a map instead of a single bool, allowing us to parameterise it based on the entity we want to compare - Adding index creation/update when field isUnique is set to true and index deletion when isUnique is false (for now) close https://github.com/twentyhq/core-team-issues/issues/1346
This commit is contained in:
+3
-3
@@ -75,7 +75,6 @@ export class DatabaseEventTriggerV2Service {
|
||||
},
|
||||
buildOptions: {
|
||||
isSystemBuild: false,
|
||||
inferDeletionFromMissingEntities: false,
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -156,7 +155,6 @@ export class DatabaseEventTriggerV2Service {
|
||||
},
|
||||
buildOptions: {
|
||||
isSystemBuild: false,
|
||||
inferDeletionFromMissingEntities: false,
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -242,7 +240,9 @@ export class DatabaseEventTriggerV2Service {
|
||||
},
|
||||
buildOptions: {
|
||||
isSystemBuild: false,
|
||||
inferDeletionFromMissingEntities: true,
|
||||
inferDeletionFromMissingEntities: {
|
||||
databaseEventTrigger: true,
|
||||
},
|
||||
},
|
||||
workspaceId,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user