mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
parent
e0b8ea6e30
commit
7ef8220bb1
1 changed files with 12 additions and 4 deletions
|
|
@ -80,14 +80,22 @@ async function runMigrations(missingMigrations: Set<string>) {
|
|||
} catch (error) {
|
||||
console.log('Failed!');
|
||||
console.error(error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const missingMigrations = await getMissingMigrations();
|
||||
try {
|
||||
const missingMigrations = await getMissingMigrations();
|
||||
|
||||
await runMigrations(missingMigrations);
|
||||
await runMigrations(missingMigrations);
|
||||
|
||||
if (missingMigrations.size === 0) {
|
||||
console.log('No migrations to run!');
|
||||
if (missingMigrations.size === 0) {
|
||||
console.log('No migrations to run!');
|
||||
}
|
||||
|
||||
Deno.exit(0);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
Deno.exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue