Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update drizzle to 0.33.0 #275

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dotenv from 'dotenv'
import type { Config } from 'drizzle-kit'
import { defineConfig } from 'drizzle-kit'
import path from 'node:path'

dotenv.config({ path: path.resolve(process.cwd(), '.env.local') })
Expand All @@ -10,11 +10,11 @@ if (process.env.SKIP_ENV_VALIDATION !== 'true') {
throw new Error('Missing environment variable DATABASE_URL')
}

export default {
export default defineConfig({
schema: './src/server/db/schema/*',
out: './drizzle',
driver: 'pg',
dialect: 'postgresql',
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
url: process.env.DATABASE_URL!,
},
} satisfies Config
})
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"test:integration:dev": "SKIP_ENV_VALIDATION=true jest --watch",
"test:e2e": "playwright test",
"test:e2e:dev": "playwright test --ui",
"db:generate": "SKIP_ENV_VALIDATION=true drizzle-kit generate:pg",
"db:push": "drizzle-kit push:pg",
"db:generate": "SKIP_ENV_VALIDATION=true drizzle-kit generate",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"db:local:studio": "USE_LOCAL_DB=true drizzle-kit studio",
"db:local:migrate": "USE_LOCAL_DB=true node ./src/server/db/migrate.mjs",
Expand All @@ -39,7 +39,7 @@
"autoprefixer": "10.4.17",
"bcryptjs": "2.4.3",
"clsx": "2.1.0",
"drizzle-orm": "0.30.7",
"drizzle-orm": "0.33.0",
"drizzle-zod": "0.5.1",
"eslint-plugin-drizzle": "0.2.3",
"framer-motion": "11.0.3",
Expand Down Expand Up @@ -84,7 +84,7 @@
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "6.21.0",
"dotenv": "16.4.1",
"drizzle-kit": "0.20.14",
"drizzle-kit": "0.24.0",
"eslint": "8.56.0",
"eslint-config-next": "14.1.0",
"eslint-config-prettier": "9.1.0",
Expand Down
Loading
Loading