a5790e3967
Before <img width="500" height="500" alt="Screenshot 2025-10-16 at 11 38 07" src="https://github.com/user-attachments/assets/7fb99487-8e18-41e4-b7e1-0951782480c2" /> After <img width="500" height="500" alt="Screenshot 2025-10-16 at 11 37 58" src="https://github.com/user-attachments/assets/602c188b-0208-4e74-a3b6-5631df1bb968" />
44 lines
2.3 KiB
TypeScript
44 lines
2.3 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { DeduplicateUniqueFieldsCommand } from 'src/database/commands/upgrade-version-command/1-8/1-8-deduplicate-unique-fields.command';
|
|
import { MigrateChannelSyncStagesCommand } from 'src/database/commands/upgrade-version-command/1-8/1-8-migrate-channel-sync-stages.command';
|
|
import { MigrateWorkflowStepFilterOperandValueCommand } from 'src/database/commands/upgrade-version-command/1-8/1-8-migrate-workflow-step-filter-operand-value';
|
|
import { RegeneratePersonSearchVectorWithPhonesCommand } from 'src/database/commands/upgrade-version-command/1-8/1-8-regenerate-person-search-vector-with-phones.command';
|
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
|
import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
|
import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity';
|
|
import { IndexMetadataModule } from 'src/engine/metadata-modules/index-metadata/index-metadata.module';
|
|
import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity';
|
|
import { WorkspaceMigrationModule } from 'src/engine/metadata-modules/workspace-migration/workspace-migration.module';
|
|
import { WorkspaceSchemaManagerModule } from 'src/engine/twenty-orm/workspace-schema-manager/workspace-schema-manager.module';
|
|
import { WorkspaceMigrationRunnerModule } from 'src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Workspace,
|
|
FieldMetadataEntity,
|
|
ObjectMetadataEntity,
|
|
IndexMetadataEntity,
|
|
]),
|
|
IndexMetadataModule,
|
|
WorkspaceMigrationRunnerModule,
|
|
WorkspaceMigrationModule,
|
|
WorkspaceSchemaManagerModule,
|
|
],
|
|
providers: [
|
|
MigrateWorkflowStepFilterOperandValueCommand,
|
|
MigrateChannelSyncStagesCommand,
|
|
DeduplicateUniqueFieldsCommand,
|
|
RegeneratePersonSearchVectorWithPhonesCommand,
|
|
],
|
|
exports: [
|
|
MigrateChannelSyncStagesCommand,
|
|
MigrateWorkflowStepFilterOperandValueCommand,
|
|
DeduplicateUniqueFieldsCommand,
|
|
RegeneratePersonSearchVectorWithPhonesCommand,
|
|
],
|
|
})
|
|
export class V1_8_UpgradeVersionCommandModule {}
|