From 3cb7f90660a723cf3aa85c2ba099d778ac9fe4fa Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 16 Oct 2024 07:04:10 +0000 Subject: [PATCH] refactor: disable the upgrader for now --- packages/nocodb/src/providers/init-meta-service.provider.ts | 2 +- packages/nocodb/src/version-upgrader/NcUpgrader.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/providers/init-meta-service.provider.ts b/packages/nocodb/src/providers/init-meta-service.provider.ts index 77cad8e0de..d5adc91795 100644 --- a/packages/nocodb/src/providers/init-meta-service.provider.ts +++ b/packages/nocodb/src/providers/init-meta-service.provider.ts @@ -31,7 +31,7 @@ export const InitMetaServiceProvider: FactoryProvider = { const config = await NcConfig.createByEnv(); // set version - process.env.NC_VERSION = '0227000'; + process.env.NC_VERSION = '0225002'; // set migration jobs version process.env.NC_MIGRATION_JOBS_VERSION = '2'; diff --git a/packages/nocodb/src/version-upgrader/NcUpgrader.ts b/packages/nocodb/src/version-upgrader/NcUpgrader.ts index aede944d3e..924c6d1f18 100644 --- a/packages/nocodb/src/version-upgrader/NcUpgrader.ts +++ b/packages/nocodb/src/version-upgrader/NcUpgrader.ts @@ -12,7 +12,7 @@ import ncXcdbLTARUpgrader from './upgraders/0108002_ncXcdbLTARUpgrader'; import ncXcdbLTARIndexUpgrader from './upgraders/0111002_ncXcdbLTARIndexUpgrader'; import ncXcdbCreatedAndUpdatedSystemFieldsUpgrader from './upgraders/0111005_ncXcdbCreatedAndUpdatedSystemFieldsUpgrader'; import ncDatasourceDecrypt from './upgraders/0225002_ncDatasourceDecrypt'; -import dupColMergeUpgrader from './0205003_dupColMergeUpgrader'; +// import dupColMergeUpgrader from './0205003_dupColMergeUpgrader'; import type { MetaService } from '~/meta/meta.service'; import type { NcConfig } from '~/interface/config'; import { T } from '~/utils'; @@ -151,7 +151,8 @@ export default class NcUpgrader { { name: '0111002', handler: ncXcdbLTARIndexUpgrader }, { name: '0111005', handler: ncXcdbCreatedAndUpdatedSystemFieldsUpgrader }, { name: '0225002', handler: ncDatasourceDecrypt }, - { name: '0227000', handler: dupColMergeUpgrader }, + // disable for now + // { name: '0227000', handler: dupColMergeUpgrader }, ]; } }