Skip to content

Commit

Permalink
feat: add and scripts to prisma installer
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon93s committed May 19, 2024
1 parent a25e49a commit 73e8e07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/hot-chairs-fail.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"create-t3-app": minor
---

Add `db:generate` and `db:migrate` scripts to drizzle installer
Add `db:generate` and `db:migrate` scripts to drizzle and prisma installers
2 changes: 2 additions & 0 deletions cli/src/installers/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export const prismaInstaller: Installer = ({
postinstall: "prisma generate",
"db:push": "prisma db push",
"db:studio": "prisma studio",
"db:generate": "prisma migrate dev",
"db:migrate": "prisma migrate deploy",
};

fs.copySync(clientSrc, clientDest);
Expand Down

0 comments on commit 73e8e07

Please sign in to comment.