Skip to content

Commit 8e6828d

Browse files
committed
PM-1167 - migration to add new payment statuses
1 parent 232e9cf commit 8e6828d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 "payment_status" ADD VALUE 'FAILED';
10+
ALTER TYPE "payment_status" ADD VALUE 'RETURNED';

prisma/schema.prisma

+2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ enum payment_status {
241241
OWED
242242
PROCESSING
243243
CANCELLED
244+
FAILED
245+
RETURNED
244246
}
245247

246248
enum reference_type {

0 commit comments

Comments
 (0)