Unique fields - fixes (#13848)
- Enable update to unique for composite field with defaultValue different from default defaultValue on subfield not included in unique constraint - Enable update to unique for standard field + Disable update to non-unique for standard index - Fix typo Fixes https://github.com/twentyhq/core-team-issues/issues/1360
This commit is contained in:
+5
-1
@@ -560,7 +560,11 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
|
||||
options: FindOneOptions<ObjectMetadataEntity>,
|
||||
): Promise<ObjectMetadataEntity | null> {
|
||||
return this.objectMetadataRepository.findOne({
|
||||
relations: ['fields'],
|
||||
relations: [
|
||||
'fields',
|
||||
'indexMetadatas',
|
||||
'indexMetadatas.indexFieldMetadatas',
|
||||
],
|
||||
...options,
|
||||
where: {
|
||||
...options.where,
|
||||
|
||||
Reference in New Issue
Block a user