chore: add missing migrations and routes
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 6s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 17:35:49 +01:00
parent 4c10702fb7
commit fd0f57824d
5 changed files with 466 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
-- Replace anilist_enabled boolean with generic reading_status_provider
ALTER TABLE libraries ADD COLUMN reading_status_provider TEXT;
UPDATE libraries SET reading_status_provider = 'anilist' WHERE anilist_enabled = TRUE;
ALTER TABLE libraries DROP COLUMN anilist_enabled;
-- Add provider column to anilist_series_links for future multi-provider support
ALTER TABLE anilist_series_links ADD COLUMN provider TEXT NOT NULL DEFAULT 'anilist';
-- Update the primary key to include provider
ALTER TABLE anilist_series_links DROP CONSTRAINT anilist_series_links_pkey;
ALTER TABLE anilist_series_links ADD PRIMARY KEY (library_id, series_name, provider);