g1t/services/repos/migrations/0003_protection.sql

3 lines179 bytesCodeBlame
1-- A protected repository's default branch changes only by merging a pull
2-- request. Pushes to it are refused.
3ALTER TABLE repos ADD COLUMN protected INTEGER NOT NULL DEFAULT 0;