Files
warmbly/internal/infrastructure/db/migrations/000050_oauth_app_webhooks.down.sql
T

9 lines
345 B
SQL

-- Remove app-materialized webhook endpoints before dropping the app columns
-- (they were derived from these columns).
DELETE FROM webhook_endpoints WHERE oauth_application_id IS NOT NULL;
ALTER TABLE oauth_applications
DROP COLUMN IF EXISTS webhook_url,
DROP COLUMN IF EXISTS webhook_events,
DROP COLUMN IF EXISTS webhook_secret;