| 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 (SQLite cannot easily drop columns) but is no longer read or written. |
| 4 | ALTER TABLE repos ADD COLUMN visibility TEXT NOT NULL DEFAULT 'private'; |
| 5 | UPDATE repos SET visibility = CASE WHEN is_private = 1 THEN 'private' ELSE 'public' END; |