mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix migrations exit code
This commit is contained in:
@@ -15,9 +15,10 @@ export default async function migrate(direction: 'latest' | 'up' | 'down') {
|
||||
} else {
|
||||
console.log('✨ Database up to date');
|
||||
}
|
||||
database.destroy();
|
||||
process.exit();
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
} finally {
|
||||
database.destroy();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user