tv shows to tv series
This commit is contained in:
@@ -10,8 +10,8 @@ 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,
|
||||
"liked_shows" text DEFAULT '' NOT NULL,
|
||||
"disliked_shows" text DEFAULT '' NOT NULL,
|
||||
"liked_series" text DEFAULT '' NOT NULL,
|
||||
"disliked_series" text DEFAULT '' NOT NULL,
|
||||
"themes" text DEFAULT '' NOT NULL,
|
||||
"brainstorm_count" integer DEFAULT 100 NOT NULL,
|
||||
"recommendations" jsonb,
|
||||
|
||||
2
packages/backend/drizzle/0003_changing_tv_series.sql
Normal file
2
packages/backend/drizzle/0003_changing_tv_series.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "recommendations" RENAME COLUMN "liked_shows" TO "liked_series";
|
||||
ALTER TABLE "recommendations" RENAME COLUMN "disliked_shows" TO "disliked_series";
|
||||
@@ -89,15 +89,15 @@
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
"liked_shows": {
|
||||
"name": "liked_shows",
|
||||
"liked_series": {
|
||||
"name": "liked_series",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"default": "''"
|
||||
},
|
||||
"disliked_shows": {
|
||||
"name": "disliked_shows",
|
||||
"disliked_series": {
|
||||
"name": "disliked_series",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
|
||||
Reference in New Issue
Block a user