Skip to content

Commit

Permalink
Establish database connection in migration code (#5339)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuhman committed Mar 1, 2024
1 parent 52e7ac1 commit ef3a755
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Guides/Database.md
Expand Up @@ -287,6 +287,8 @@ async function migrate() {
});

try {
await client.connect();

const postgrator = new Postgrator({
migrationPattern: path.join(__dirname, '/migrations/*'),
driver: 'pg',
Expand Down

0 comments on commit ef3a755

Please sign in to comment.