chore: generate migration 0023 for screenshots, power, youtube schema

This commit is contained in:
2026-05-09 22:20:41 +08:00
parent 8904a7b611
commit 666219614b
3 changed files with 2358 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
CREATE TABLE "entry_screenshots" (
"id" text PRIMARY KEY NOT NULL,
"entry_id" text NOT NULL,
"storage_key" text NOT NULL,
"order_index" integer DEFAULT 0 NOT NULL,
"mime_type" text NOT NULL,
"width" integer NOT NULL,
"height" integer NOT NULL,
"original_name" text,
"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "hardware" ADD COLUMN "watt_hours" real;--> statement-breakpoint
ALTER TABLE "hardware" ADD COLUMN "tdp_max" real;--> statement-breakpoint
ALTER TABLE "performance_entries" ADD COLUMN "tdp_watts" real;--> statement-breakpoint
ALTER TABLE "performance_entries" ADD COLUMN "youtube_video_id" text;--> statement-breakpoint
ALTER TABLE "entry_screenshots" ADD CONSTRAINT "entry_screenshots_entry_id_performance_entries_id_fk" FOREIGN KEY ("entry_id") REFERENCES "public"."performance_entries"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "entry_screenshots_entry_idx" ON "entry_screenshots" USING btree ("entry_id");
File diff suppressed because it is too large Load Diff
+7
View File
@@ -162,6 +162,13 @@
"when": 1778301841773, "when": 1778301841773,
"tag": "0022_married_zeigeist", "tag": "0022_married_zeigeist",
"breakpoints": true "breakpoints": true
},
{
"idx": 23,
"version": "7",
"when": 1778336095477,
"tag": "0023_married_avengers",
"breakpoints": true
} }
] ]
} }