fabrica

hanna/fabrica

359 bytes
Raw
1-- Replace the two-state is_private flag with a three-state visibility token
2-- (public / internal / private), GitLab-style. The is_private column is left in
3-- place but is no longer read or written.
4ALTER TABLE repos ADD COLUMN visibility TEXT NOT NULL DEFAULT 'private';
5UPDATE repos SET visibility = CASE WHEN is_private THEN 'private' ELSE 'public' END;