Enforce unique constraints for 0.33 (#8645)

## Context
- Fixing folder structure where 0.33 was inside 0.32.
- Updating the command so it runs enforce uniqueness on all tables
- Updating workspaces entities so the sync metadata adds the index
This commit is contained in:
Weiko
2024-11-21 17:39:26 +01:00
committed by GitHub
parent 39373b4a28
commit 52df5301a8
13 changed files with 130 additions and 86 deletions

View File

@ -25,7 +25,9 @@ export function WorkspaceIndex(
);
metadataArgsStorage.addIndexes({
name: `IDX_${generateDeterministicIndexName([
name: `IDX_${
options?.isUnique ? 'UNIQUE_' : ''
}${generateDeterministicIndexName([
convertClassNameToObjectMetadataName(target.name),
...columns,
])}`,