OXYGENHUB
# 4f37afcc3583 oxygenhub / crates / hub / migrations / 0028_runner_scopes.sql
550 B · SQL · last changed Runners serve the site, an owner or one repository (refs #41, part 2) 1 month ago source blame history raw
74be9796 Andy McCall ↶ 1
-- Runner scopes (oxygenhub#41, part 2): a runner takes jobs from the whole
2
-- site (both empty), from one owner's repositories (scope_owner), or from
3
-- one repository (scope_repo_id, with its owner). Registration tokens carry
4
-- the scope the runner gets.
5
ALTER TABLE flow_runners ADD COLUMN scope_owner TEXT NOT NULL DEFAULT '';
6
ALTER TABLE flow_runners ADD COLUMN scope_repo_id INTEGER;
7
ALTER TABLE flow_runner_registrations ADD COLUMN scope_owner TEXT NOT NULL DEFAULT '';
8
ALTER TABLE flow_runner_registrations ADD COLUMN scope_repo_id INTEGER;