Files
silo-server/migrations/sql/20260805221735_add_watch_provider_plugin_credentials.sql

17 lines
582 B
SQL
Raw Permalink Normal View History

-- +goose Up
ALTER TABLE watch_provider_connections
ADD COLUMN plugin_credentials text NOT NULL DEFAULT '';
ALTER TABLE watch_provider_scrobble_sessions
ADD COLUMN history_reconciled_at timestamptz;
-- +goose Down
-- Irreversible for plugin connections: TokenType, Scopes, and
-- SecretAttributes exist only in plugin_credentials, so rolling back may
-- require those providers to reconnect.
ALTER TABLE watch_provider_connections
DROP COLUMN IF EXISTS plugin_credentials;
ALTER TABLE watch_provider_scrobble_sessions
DROP COLUMN IF EXISTS history_reconciled_at;