Skip to content

Commit 6e98ef4

Browse files
fix(db): disable statement_timeout for migrations
1 parent 21c956c commit 6e98ef4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/db/scripts/migrate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if (!url) {
1212
const client = postgres(url, { max: 1, connect_timeout: 10 })
1313

1414
try {
15+
await client`SET statement_timeout = 0`
1516
await migrate(drizzle(client), { migrationsFolder: './migrations' })
1617
console.log('Migrations applied successfully.')
1718
} catch (error) {

0 commit comments

Comments
 (0)