Files
xamxam/app/migrations/applied/030_peertube_oauth.sql

7 lines
397 B
SQL

-- Migration 030: Store PeerTube OAuth client credentials
-- Instead of fetching client_id/client_secret from the API on every token request,
-- store them once. The admin fetches them manually or we auto-fetch on first save.
ALTER TABLE peertube_settings ADD COLUMN oauth_client_id TEXT NOT NULL DEFAULT '';
ALTER TABLE peertube_settings ADD COLUMN oauth_client_secret TEXT NOT NULL DEFAULT '';