Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

20240731_0_mastodon-apps-uuid.sql
-- Create field to store registartion session on Mastodon

DO $$
BEGIN
    IF NOT EXISTS (
        SELECT 1 FROM pg_class c
        INNER JOIN pg_namespace n ON n.oid = c.relnamespace
        INNER JOIN pg_attribute a ON a.attrelid = c.oid
        WHERE c.relname = 'mastodon_apps' AND n.nspname = 'auth' AND a.attname = 'reg_sess_id'
    ) THEN
        ALTER TABLE auth.mastodon_apps ADD COLUMN reg_sess_id UUID NOT NULL;
    END IF;
END
$$;