lol
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
CREATE TABLE "feedback" (
|
||||
CREATE TABLE IF NOT EXISTS "feedback" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"tv_show_name" text NOT NULL,
|
||||
"stars" integer NOT NULL,
|
||||
@@ -6,7 +6,7 @@ CREATE TABLE "feedback" (
|
||||
"created_at" timestamp DEFAULT now() NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "recommendations" (
|
||||
CREATE TABLE IF NOT EXISTS "recommendations" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"title" text NOT NULL,
|
||||
"main_prompt" text NOT NULL,
|
||||
@@ -19,4 +19,4 @@ CREATE TABLE "recommendations" (
|
||||
"created_at" timestamp DEFAULT now() NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "feedback_tv_show_name_idx" ON "feedback" USING btree ("tv_show_name");
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS "feedback_tv_show_name_idx" ON "feedback" USING btree ("tv_show_name");
|
||||
Reference in New Issue
Block a user