fix: Remove cloud hosted check before running migrations
This commit is contained in:
@@ -10,13 +10,8 @@ export async function checkPendingMigrations() {
|
|||||||
try {
|
try {
|
||||||
const pending = await migrations.pending();
|
const pending = await migrations.pending();
|
||||||
if (!isEmpty(pending)) {
|
if (!isEmpty(pending)) {
|
||||||
if (env.isCloudHosted) {
|
Logger.info("database", "Running migrations…");
|
||||||
Logger.warn(chalk.red("Migrations are pending"));
|
await migrations.up();
|
||||||
process.exit(1);
|
|
||||||
} else {
|
|
||||||
Logger.info("database", "Running migrations…");
|
|
||||||
await migrations.up();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
await checkDataMigrations();
|
await checkDataMigrations();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user