Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add db:generate and db:migrate scripts #1893

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: add and scripts to prisma installer
  • Loading branch information
brandon93s committed May 19, 2024
commit 73e8e07ad5e5fdd8e64910bd423ab7c2942b7a12
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
Loading