Skip to content

Commit

Permalink
fix: remove deprecated push command in drizzle package.json scripts (… (
Browse files Browse the repository at this point in the history
  • Loading branch information
Irere123 committed May 11, 2024
1 parent c45ee6a commit f148deb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/thirty-tables-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-t3-app": patch
---

fix: remove deprecated push command in drizzle package.json scripts (…
)
9 changes: 1 addition & 8 deletions cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@ export const drizzleInstaller: Installer = ({
const packageJsonContent = fs.readJSONSync(packageJsonPath) as PackageJson;
packageJsonContent.scripts = {
...packageJsonContent.scripts,
"db:push": `drizzle-kit push:${
{
postgres: "pg",
sqlite: "sqlite",
mysql: "mysql",
planetscale: "mysql",
}[databaseProvider]
}`,
"db:push": `drizzle-kit push`,
"db:studio": "drizzle-kit studio",
};

Expand Down

0 comments on commit f148deb

Please sign in to comment.