Skip to content

Commit

Permalink
chore: update drizzle (t3-oss#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Feb 22, 2024
1 parent c3c4710 commit 0418663
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 54 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-points-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

chore: update drizzle-orm
6 changes: 3 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"devDependencies": {
"@auth/drizzle-adapter": "^0.3.6",
"@next-auth/prisma-adapter": "^1.0.7",
"@planetscale/database": "^1.11.0",
"@planetscale/database": "^1.16.0",
"@prisma/adapter-planetscale": "^5.6.0",
"@prisma/client": "^5.6.0",
"@t3-oss/env-nextjs": "^0.7.1",
Expand All @@ -76,8 +76,8 @@
"@types/fs-extra": "^11.0.1",
"@types/gradient-string": "^1.1.2",
"@types/node": "^18.17.0",
"drizzle-kit": "^0.20.9",
"drizzle-orm": "^0.29.3",
"drizzle-kit": "^0.20.14",
"drizzle-orm": "^0.29.4",
"next": "^14.0.3",
"next-auth": "^4.24.5",
"prettier": "^3.1.0",
Expand Down
6 changes: 3 additions & 3 deletions cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const dependencyVersionMap = {
"@prisma/adapter-planetscale": "^5.6.0",

// Drizzle
"drizzle-orm": "^0.29.3",
"drizzle-kit": "^0.20.9",
"drizzle-orm": "^0.29.4",
"drizzle-kit": "^0.20.14",
mysql2: "^3.6.1",
"@planetscale/database": "^1.11.0",
"@planetscale/database": "^1.16.0",
postgres: "^3.4.3",
pg: "^8.11.3",
"@types/better-sqlite3": "^7.6.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,4 @@ import { drizzle } from "drizzle-orm/planetscale-serverless";
import { env } from "~/env";
import * as schema from "./schema";

export const db = drizzle(
new Client({
url: env.DATABASE_URL,
}).connection(),
{ schema }
);
export const db = drizzle(new Client({ url: env.DATABASE_URL }), { schema });
65 changes: 23 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0418663

Please sign in to comment.