2026-06-06 23:51:30 -04:00
|
|
|
-- +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'));
|
2026-06-06 23:51:30 -04:00
|
|
|
-- +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
|