Files

19 lines
761 B
SQL
Raw Permalink Normal View History

-- +goose Up
-- +goose StatementBegin
2026-05-22 20:26:11 -04:00
-- Allow 'jellyfin' as a source_type for history import sources.
-- Previously only 'emby' and 'plex' were allowed because jellyfin self-service
-- imports used inline credentials rather than predefined sources.
ALTER TABLE history_import_sources
DROP CONSTRAINT history_import_sources_source_type_check,
ADD CONSTRAINT history_import_sources_source_type_check
CHECK (source_type IN ('emby', 'jellyfin', 'plex'));
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE history_import_sources
DROP CONSTRAINT history_import_sources_source_type_check,
ADD CONSTRAINT history_import_sources_source_type_check
CHECK (source_type IN ('emby', 'plex'));
-- +goose StatementEnd