Skip to content

Commit 34aaf27

Browse files
authored
Merge pull request #611 from UTDNebula/internal/migration-setup
internal(NP-72): initialize migrations
2 parents f146743 + 7e23edb commit 34aaf27

File tree

5 files changed

+414
-3
lines changed

5 files changed

+414
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Prisma generate and push
5757
run: |
5858
npm run prisma:generate &&
59-
npx prisma db push
59+
npm run prisma:migrate:deploy
6060
6161
- name: Run Cypress e2e tests
6262
run: |

package-lock.json

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"dev": "next dev",
77
"prisma:generate": "prisma generate --schema prisma/platform.prisma && prisma generate --schema prisma/schema.prisma",
8-
"prisma:push:main": "prisma db push --schema prisma/schema.prisma",
9-
"build": "npm run prisma:generate && npm run prisma:push:main && prisma db seed && next build",
8+
"prisma:migrate:deploy": "prisma migrate deploy --schema prisma/schema.prisma",
9+
"build": "npm run prisma:generate && next build && npm run prisma:migrate:deploy && prisma db seed",
1010
"start": "next start",
1111
"lint": "eslint --fix .",
1212
"format": "prettier --write .",

0 commit comments

Comments
 (0)