We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c584de commit 1b50ec4Copy full SHA for 1b50ec4
source/util/migration_handler.ts
@@ -1,8 +1,8 @@
1
-import { Client } from 'pg'
+import pg from 'pg'
2
import { migrate } from 'postgres-migrations'
3
4
export async function applyMigrations(config: any): Promise<void> {
5
- const client = new Client(config)
+ const client = new pg.Client(config)
6
await client.connect()
7
try {
8
await migrate({ client }, __dirname + '/migrations')
0 commit comments