We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afcbcf2 commit 786c6f0Copy full SHA for 786c6f0
2 files changed
.github/workflows/migrations.yml
@@ -39,4 +39,4 @@ jobs:
39
working-directory: ./packages/db
40
env:
41
DATABASE_URL: ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || github.ref == 'refs/heads/dev' && secrets.DEV_DATABASE_URL || secrets.STAGING_DATABASE_URL }}
42
- run: bunx drizzle-kit migrate --config=./drizzle.config.ts
+ run: bun run ./scripts/migrate.ts
packages/db/scripts/migrate.ts
@@ -12,6 +12,7 @@ if (!url) {
12
const client = postgres(url, { max: 1, connect_timeout: 10 })
13
14
try {
15
+ await client`SET statement_timeout = 0`
16
await migrate(drizzle(client), { migrationsFolder: './migrations' })
17
console.log('Migrations applied successfully.')
18
} catch (error) {
0 commit comments