mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
parent
092e571dc7
commit
80a4d41f0f
@ -28,6 +28,7 @@ function defaultOptions() {
|
|||||||
dropBeforeImport: false,
|
dropBeforeImport: false,
|
||||||
getLogger: defaultLogProvider,
|
getLogger: defaultLogProvider,
|
||||||
customContextFields: [],
|
customContextFields: [],
|
||||||
|
disableDBMigration: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,11 @@ async function start(opts) {
|
|||||||
const logger = options.getLogger('server-impl.js');
|
const logger = options.getLogger('server-impl.js');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await migrator(options);
|
if (options.disableDBMigration) {
|
||||||
|
logger.info('DB migrations disabled');
|
||||||
|
} else {
|
||||||
|
await migrator(options);
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error('Failed to migrate db', err);
|
logger.error('Failed to migrate db', err);
|
||||||
throw err;
|
throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user