Remove objectMetadata isSoftDeletable

This commit is contained in:
Weiko
2024-09-16 13:40:10 +02:00
parent 37d85a716a
commit 31dea498e9
20 changed files with 53 additions and 118 deletions

View File

@ -20,5 +20,4 @@ export interface ObjectMetadataInterface {
isAuditLogged: boolean;
labelIdentifierFieldMetadataId?: string | null;
imageIdentifierFieldMetadataId?: string | null;
isSoftDeletable?: boolean | null;
}

View File

@ -69,9 +69,6 @@ export class ObjectMetadataEntity implements ObjectMetadataInterface {
@Column({ default: true })
isAuditLogged: boolean;
@Column({ nullable: true, type: 'boolean' })
isSoftDeletable?: boolean | null;
@Column({ nullable: true, type: 'uuid' })
labelIdentifierFieldMetadataId?: string | null;

View File

@ -215,7 +215,6 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
isCustom: isCustom,
isSystem: false,
isRemote: objectMetadataInput.isRemote,
isSoftDeletable: true,
fields: isCustom
? // Creating default fields.
// No need to create a custom migration for this though as the default columns are already