diff --git a/src/lib/create-config.ts b/src/lib/create-config.ts index 5e2951c48dd3..35980b6274cc 100644 --- a/src/lib/create-config.ts +++ b/src/lib/create-config.ts @@ -259,7 +259,7 @@ const defaultDbOptions: WithOptional = propagateCreateError: false, }, schema: process.env.DATABASE_SCHEMA || 'public', - disableMigration: false, + disableMigration: parseEnvVarBoolean(process.env.DATABASE_DISABLE_MIGRATION, false), applicationName: process.env.DATABASE_APPLICATION_NAME || 'unleash', };