Create a new channel as a copy of main.
Rename main to:
Delete main? This cannot be undone.
ALTER TABLE jobs ADD COLUMN repo_state TEXT, ADD COLUMN channel TEXT NOT NULL DEFAULT 'main', ADD COLUMN script TEXT;