Skip to content

Commit

Permalink
Make disableMigration to be handled by environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
0417taehyun committed Nov 4, 2024
1 parent d985da3 commit 35d888a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const defaultDbOptions: WithOptional<IDBOption, 'user' | 'password' | 'host'> =
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',
};

Expand Down

0 comments on commit 35d888a

Please sign in to comment.