chore: migration

This commit is contained in:
Methapon2001 2025-01-06 11:55:41 +07:00
parent 4af2a2c174
commit 027bb49c2a
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
-- CreateEnum
CREATE TYPE "CreditNoteStatus" AS ENUM ('Pending', 'Success');
-- AlterTable
ALTER TABLE "CreditNote" ADD COLUMN "creditNoteStatus" "CreditNoteStatus";

View file

@ -0,0 +1,9 @@
/*
Warnings:
- Made the column `creditNoteStatus` on table `CreditNote` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "CreditNote" ALTER COLUMN "creditNoteStatus" SET NOT NULL,
ALTER COLUMN "creditNoteStatus" SET DEFAULT 'Pending';