Skip to content

Commit

Permalink
Merge pull request #611 from UTDNebula/internal/migration-setup
Browse files Browse the repository at this point in the history
internal(NP-72): initialize migrations
  • Loading branch information
jasonappah authored Jul 24, 2023
2 parents f146743 + 7e23edb commit 34aaf27
Show file tree
Hide file tree
Showing 5 changed files with 414 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Prisma generate and push
run: |
npm run prisma:generate &&
npx prisma db push
npm run prisma:migrate:deploy
- name: Run Cypress e2e tests
run: |
Expand Down
180 changes: 180 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"dev": "next dev",
"prisma:generate": "prisma generate --schema prisma/platform.prisma && prisma generate --schema prisma/schema.prisma",
"prisma:push:main": "prisma db push --schema prisma/schema.prisma",
"build": "npm run prisma:generate && npm run prisma:push:main && prisma db seed && next build",
"prisma:migrate:deploy": "prisma migrate deploy --schema prisma/schema.prisma",
"build": "npm run prisma:generate && next build && npm run prisma:migrate:deploy && prisma db seed",
"start": "next start",
"lint": "eslint --fix .",
"format": "prettier --write .",
Expand Down
Loading

0 comments on commit 34aaf27

Please sign in to comment.