From 8d77ae248aabb3f95995e2acbdfcb0a8d6fd7172 Mon Sep 17 00:00:00 2001 From: jlightner Date: Sat, 4 Apr 2026 08:03:38 +0000 Subject: [PATCH] fix: remove duplicate embed_thumbnail/sponsor_block_remove columns from migration 0013 Migration 0011 already adds these columns to format_profiles. The duplicate ALTER TABLE statements in 0013 cause SQLITE_ERROR on production DB where 0011 was already applied. --- drizzle/0013_flat_lady_deathstrike.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drizzle/0013_flat_lady_deathstrike.sql b/drizzle/0013_flat_lady_deathstrike.sql index deaf6f2..ef73730 100644 --- a/drizzle/0013_flat_lady_deathstrike.sql +++ b/drizzle/0013_flat_lady_deathstrike.sql @@ -24,6 +24,4 @@ CREATE TABLE `__new_content_items` ( INSERT INTO `__new_content_items`("id", "channel_id", "title", "platform_content_id", "url", "content_type", "duration", "file_path", "file_size", "format", "quality_metadata", "status", "thumbnail_url", "published_at", "downloaded_at", "monitored", "created_at", "updated_at") SELECT "id", "channel_id", "title", "platform_content_id", "url", "content_type", "duration", "file_path", "file_size", "format", "quality_metadata", "status", "thumbnail_url", "published_at", "downloaded_at", "monitored", "created_at", "updated_at" FROM `content_items`;--> statement-breakpoint DROP TABLE `content_items`;--> statement-breakpoint ALTER TABLE `__new_content_items` RENAME TO `content_items`;--> statement-breakpoint -PRAGMA foreign_keys=ON;--> statement-breakpoint -ALTER TABLE `format_profiles` ADD `embed_thumbnail` integer DEFAULT false NOT NULL;--> statement-breakpoint -ALTER TABLE `format_profiles` ADD `sponsor_block_remove` text; \ No newline at end of file +PRAGMA foreign_keys=ON; \ No newline at end of file