Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions drizzle/0006_same_nick_fury.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE TABLE "order-settings" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"adminNotificationEmails" text[] DEFAULT '{}'::text[] NOT NULL,
"created" timestamp DEFAULT (now()) NOT NULL,
"updated" timestamp DEFAULT (now()) NOT NULL
);
--> statement-breakpoint
ALTER TABLE "order" ALTER COLUMN "status" SET DATA TYPE text;--> statement-breakpoint
ALTER TABLE "order" ALTER COLUMN "status" SET DEFAULT 'new'::text;--> statement-breakpoint
DROP TYPE "public"."order_status";--> statement-breakpoint
CREATE TYPE "public"."order_status" AS ENUM('new', 'confirmed', 'printed', 'packed', 'shipped', 'received', 'archived');--> statement-breakpoint
ALTER TABLE "order" ALTER COLUMN "status" SET DEFAULT 'new'::"public"."order_status";--> statement-breakpoint
ALTER TABLE "order" ALTER COLUMN "status" SET DATA TYPE "public"."order_status" USING "status"::"public"."order_status";--> statement-breakpoint
ALTER TABLE "user" ADD COLUMN "orderNotificationEmails" text;
Loading