chore: migration
This commit is contained in:
parent
4af2a2c174
commit
027bb49c2a
2 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
||||||
|
-- CreateEnum
|
||||||
|
CREATE TYPE "CreditNoteStatus" AS ENUM ('Pending', 'Success');
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "CreditNote" ADD COLUMN "creditNoteStatus" "CreditNoteStatus";
|
||||||
|
|
@ -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';
|
||||||
Loading…
Add table
Add a link
Reference in a new issue