From 1eae31527e2ebffc3192e01d81f70a10b0456557 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 15 Aug 2023 14:46:08 +0200 Subject: [PATCH] feat: enable migration lock by default (#4495) --- src/lib/__snapshots__/create-config.test.ts.snap | 4 ++-- src/lib/types/experimental.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 545d952ef3..aef586cf9b 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -92,7 +92,7 @@ exports[`should create default config 1`] = ` "value": "", }, }, - "migrationLock": false, + "migrationLock": true, "newProjectLayout": false, "personalAccessTokensKillSwitch": false, "proPlanAutoCharge": false, @@ -130,7 +130,7 @@ exports[`should create default config 1`] = ` "value": "", }, }, - "migrationLock": false, + "migrationLock": true, "newProjectLayout": false, "personalAccessTokensKillSwitch": false, "proPlanAutoCharge": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 71b7d8ee9e..da73b1c41f 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -84,7 +84,7 @@ const flags: IFlags = { process.env.UNLEASH_PAT_KILL_SWITCH, false, ), - migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, false), + migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, true), demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false), googleAuthEnabled: parseEnvVarBoolean( process.env.GOOGLE_AUTH_ENABLED,