Skip to content

Commit

Permalink
chore: update drizzle-orm and drizzle-kit (#1707)
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Marminge <[email protected]>
  • Loading branch information
esize and juliusmarminge committed Dec 28, 2023
1 parent 8d289e4 commit 26efe48
Show file tree
Hide file tree
Showing 5 changed files with 3,743 additions and 200 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-papayas-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

chore: update drizzle-orm and drizzle-kit
4 changes: 2 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"@types/gradient-string": "^1.1.2",
"@types/inquirer": "^9.0.3",
"@types/node": "^18.17.0",
"drizzle-kit": "^0.20.7",
"drizzle-orm": "^0.28.5",
"drizzle-kit": "^0.20.9",
"drizzle-orm": "^0.29.2",
"next": "^14.0.3",
"next-auth": "^4.24.5",
"prettier": "^3.1.0",
Expand Down
5 changes: 2 additions & 3 deletions cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ export const dependencyVersionMap = {
"@prisma/client": "^5.6.0",

// Drizzle
"drizzle-orm": "^0.28.5",
"drizzle-kit": "^0.20.7",
"dotenv-cli": "^7.3.0",
"drizzle-orm": "^0.29.2",
"drizzle-kit": "^0.20.9",
mysql2: "^3.6.1",
"@planetscale/database": "^1.11.0",

Expand Down
6 changes: 3 additions & 3 deletions cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const drizzleInstaller: Installer = ({
}) => {
addPackageDependency({
projectDir,
dependencies: ["drizzle-kit", "dotenv-cli", "mysql2"],
dependencies: ["drizzle-kit", "mysql2"],
devMode: true,
});
addPackageDependency({
Expand Down Expand Up @@ -54,8 +54,8 @@ export const drizzleInstaller: Installer = ({
const packageJsonContent = fs.readJSONSync(packageJsonPath) as PackageJson;
packageJsonContent.scripts = {
...packageJsonContent.scripts,
"db:push": "dotenv drizzle-kit push:mysql",
"db:studio": "dotenv drizzle-kit studio",
"db:push": "drizzle-kit push:mysql",
"db:studio": "drizzle-kit studio",
};

fs.copySync(configFile, configDest);
Expand Down
Loading

0 comments on commit 26efe48

Please sign in to comment.