mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
fix: Remove cloud hosted check before running migrations
This commit is contained in:
1 parent
d591158c4d
commit
dec03b9d84
1 file changed
+2
-7
@@ -10,13 +10,8 @@ export async function checkPendingMigrations() {
|
||||
try {
|
||||
const pending = await migrations.pending();
|
||||
if (!isEmpty(pending)) {
|
||||
if (env.isCloudHosted) {
|
||||
Logger.warn(chalk.red("Migrations are pending"));
|
||||
process.exit(1);
|
||||
} else {
|
||||
Logger.info("database", "Running migrations…");
|
||||
await migrations.up();
|
||||
}
|
||||
Logger.info("database", "Running migrations…");
|
||||
await migrations.up();
|
||||
}
|
||||
await checkDataMigrations();
|
||||
} catch (err) {
|
||||
|
||||
Reference in new issue
Block a user