mirror of
https://github.com/p-stream/backend.git
synced 2026-01-11 20:10:33 +00:00
5 lines
314 B
SQL
5 lines
314 B
SQL
-- Add debrid_service field (debrid_token was already renamed via db push)
|
|
ALTER TABLE "user_settings" ADD COLUMN "debrid_service" VARCHAR(255);
|
|
|
|
-- Set default service to 'realdebrid' for existing users who have a token
|
|
UPDATE "user_settings" SET "debrid_service" = 'realdebrid' WHERE "debrid_token" IS NOT NULL;
|