Skip to content

Commit

Permalink
Add comment about bug in drizzle migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarah committed Sep 21, 2023
1 parent 017d682 commit 960b318
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/database/scripts/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ async function runMigrations() {
await migrate(db, {
migrationsFolder: './../database/migrations',
});
exit();
// [BUG]: `await migrate(..)` will keep process open.
// Temporary fix: exit process manually.
// https://github.com/drizzle-team/drizzle-orm/issues/1222
exit(0);
} catch (err) {
console.error(err);
exit(1);
Expand Down

0 comments on commit 960b318

Please sign in to comment.