File tree Expand file tree Collapse file tree 5 files changed +27
-6
lines changed
migrations/20250811112036_booking_status Expand file tree Collapse file tree 5 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " nestjs-booking-system" ,
3- "version" : " 1.1 .0" ,
3+ "version" : " 1.2 .0" ,
44 "license" : " MIT" ,
55 "author" : " Michał Strumpf" ,
66 "private" : true ,
7878 "typescript" : " ^5.9.2" ,
7979 "typescript-eslint" : " ^8.39.0"
8080 },
81- "prisma" : {
82- "seed" : " ts-node prisma/seed.ts"
83- },
8481 "jest" : {
8582 "moduleFileExtensions" : [
8683 " js" ,
Original file line number Diff line number Diff line change 1+ import { defineConfig } from "prisma/config" ;
2+
3+ export default defineConfig ( {
4+ migrations : {
5+ seed : `ts-node prisma/seed.ts`
6+ }
7+ } ) ;
Original file line number Diff line number Diff line change 1+ -- AlterEnum
2+ -- This migration adds more than one value to an enum.
3+ -- With PostgreSQL versions 11 and earlier, this is not possible
4+ -- in a single migration. This can be worked around by creating
5+ -- multiple migrations, each migration adding only one value to
6+ -- the enum.
7+
8+
9+ ALTER TYPE " public" ." BookingStatus" ADD VALUE ' NO_SHOW' ;
10+ ALTER TYPE " public" ." BookingStatus" ADD VALUE ' EXPIRED' ;
11+ ALTER TYPE " public" ." BookingStatus" ADD VALUE ' COMPLETED' ;
Original file line number Diff line number Diff line change @@ -82,9 +82,12 @@ Enum UserRole {
8282}
8383
8484Enum BookingStatus {
85- CONFIRMED
8685 PENDING
86+ CONFIRMED
8787 CANCELLED
88+ NO_SHOW
89+ EXPIRED
90+ COMPLETED
8891}
8992
9093Enum ServiceStatus {
Original file line number Diff line number Diff line change @@ -88,9 +88,12 @@ enum UserRole {
8888}
8989
9090enum BookingStatus {
91- CONFIRMED
9291 PENDING
92+ CONFIRMED
9393 CANCELLED
94+ NO_SHOW
95+ EXPIRED
96+ COMPLETED
9497}
9598
9699enum ServiceStatus {
You can’t perform that action at this time.
0 commit comments