Skip to content

Commit

Permalink
feat: update drizzle-kit and change connectionString to uri (t3-oss#1702
Browse files Browse the repository at this point in the history
)
  • Loading branch information
c-ehrlich committed Dec 20, 2023
1 parent dc84502 commit 62fa8dc
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-jokes-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

update drizzle-kit and change connectionString to uri
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@types/gradient-string": "^1.1.2",
"@types/inquirer": "^9.0.3",
"@types/node": "^18.17.0",
"drizzle-kit": "^0.19.13",
"drizzle-kit": "^0.20.7",
"drizzle-orm": "^0.28.5",
"next": "^14.0.3",
"next-auth": "^4.24.5",
Expand Down
2 changes: 1 addition & 1 deletion cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const dependencyVersionMap = {

// Drizzle
"drizzle-orm": "^0.28.5",
"drizzle-kit": "^0.19.3",
"drizzle-kit": "^0.20.7",
"dotenv-cli": "^7.3.0",
mysql2: "^3.6.1",
"@planetscale/database": "^1.11.0",
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/config/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
schema: "./src/server/db/schema.ts",
driver: "mysql2",
dbCredentials: {
connectionString: env.DATABASE_URL,
uri: env.DATABASE_URL,
},
tablesFilter: ["project1_*"],
} satisfies Config;
Loading

0 comments on commit 62fa8dc

Please sign in to comment.