Skip to content

Commit

Permalink
Merge pull request #26 from Kashyap1ankit/fix/hero
Browse files Browse the repository at this point in the history
prisma migration deploy
  • Loading branch information
Kashyap1ankit authored Nov 11, 2024
2 parents 97e20ae + 2b74ebe commit a86caae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"postinstall": "npx prisma generate",
"postinstall": "npx prisma generate && npx prisma migrate deploy",
"prisma:seed": "npx prisma db seed",
"prisma:docker": "npx prisma migrate dev && npm run prisma:seed && npx prisma studio ",
"dev:docker": "concurrently \"npm run prisma:docker \" \" npm run dev\" "
Expand Down
2 changes: 2 additions & 0 deletions prisma/migrations/20241111184924_new_mig/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Post" ALTER COLUMN "salary_disclosed" DROP NOT NULL;
8 changes: 8 additions & 0 deletions prisma/migrations/20241111185119_nn/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- Made the column `salary_disclosed` on table `Post` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "Post" ALTER COLUMN "salary_disclosed" SET NOT NULL;

0 comments on commit a86caae

Please sign in to comment.