From f148debf74e16b61dae89c684fbc9ac1d97ac2c8 Mon Sep 17 00:00:00 2001 From: Irere Emmanuel <69847645+Irere123@users.noreply.github.com> Date: Sat, 11 May 2024 12:25:01 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20deprecated=20push=20command=20i?= =?UTF-8?q?n=20drizzle=20package.json=20scripts=20(=E2=80=A6=20(#1884)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/thirty-tables-tie.md | 6 ++++++ cli/src/installers/drizzle.ts | 9 +-------- 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 .changeset/thirty-tables-tie.md diff --git a/.changeset/thirty-tables-tie.md b/.changeset/thirty-tables-tie.md new file mode 100644 index 0000000000..08beda2064 --- /dev/null +++ b/.changeset/thirty-tables-tie.md @@ -0,0 +1,6 @@ +--- +"create-t3-app": patch +--- + +fix: remove deprecated push command in drizzle package.json scripts (… +) diff --git a/cli/src/installers/drizzle.ts b/cli/src/installers/drizzle.ts index 8fac03f8ae..f6be4c8b6a 100644 --- a/cli/src/installers/drizzle.ts +++ b/cli/src/installers/drizzle.ts @@ -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", };