From fb8463bdf770a00a88758044f53e2ecdcb9be775 Mon Sep 17 00:00:00 2001 From: Etienne <45695613+etiennejouan@users.noreply.github.com> Date: Wed, 4 Feb 2026 17:32:43 +0100 Subject: [PATCH] add --- .../1-16/1-16-upgrade-version-command.module.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-16/1-16-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-16/1-16-upgrade-version-command.module.ts index f313f4b1a84..42f73c69a5f 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-16/1-16-upgrade-version-command.module.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-16/1-16-upgrade-version-command.module.ts @@ -3,6 +3,7 @@ import { TypeOrmModule } from '@nestjs/typeorm'; import { BackfillOpportunityOwnerFieldCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-backfill-opportunity-owner-field.command'; import { BackfillStandardPageLayoutsCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-backfill-standard-page-layouts.command'; +import { DeleteFileRecordsCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-delete-all-files.command'; import { FlushV2CacheAndIncrementMetadataVersionCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-flush-v2-cache-and-increment-metadata-version.command'; import { IdentifyAgentMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-agent-metadata.command'; import { IdentifyFieldMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-field-metadata.command'; @@ -27,6 +28,7 @@ import { MakeViewUniversalIdentifierAndApplicationIdNotNullableMigrationCommand import { UpdateFileTableMigrationCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-update-file-table-migration.command'; import { UpdateTaskOnDeleteActionCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-update-task-on-delete-action.command'; import { ApplicationModule } from 'src/engine/core-modules/application/application.module'; +import { FileEntity } from 'src/engine/core-modules/file/entities/file.entity'; import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity'; import { AgentEntity } from 'src/engine/metadata-modules/ai/ai-agent/entities/agent.entity'; import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module'; @@ -49,6 +51,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace @Module({ imports: [ TypeOrmModule.forFeature([ + FileEntity, WorkspaceEntity, AgentEntity, FieldMetadataEntity, @@ -95,6 +98,8 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullableMigrationCommand, IdentifyRemainingEntitiesMetadataCommand, FlushV2CacheAndIncrementMetadataVersionCommand, + DeleteFileRecordsCommand, + UpdateFileTableMigrationCommand, ], exports: [ UpdateTaskOnDeleteActionCommand, @@ -122,6 +127,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace IdentifyRemainingEntitiesMetadataCommand, FlushV2CacheAndIncrementMetadataVersionCommand, UpdateFileTableMigrationCommand, + DeleteFileRecordsCommand, ], }) export class V1_16_UpgradeVersionCommandModule {}