fix: remove duplicate embed_thumbnail/sponsor_block_remove columns from migration 0013
Some checks failed
CI / test (push) Failing after 20s

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.
This commit is contained in:
jlightner 2026-04-04 08:03:38 +00:00
parent f37cfde0a0
commit 8d77ae248a

View file

@ -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;
PRAGMA foreign_keys=ON;