OXYGENHUB
# aa0bfbd11f02 oxygenhub / crates / hub / migrations / 0047_coverage_settings.sql
356 B · SQL · last changed A coverage check, and rules for it 1 month ago source blame history raw
7edaff01 Andy McCall ↶ 1
-- A repository's coverage rules (oxygenhub#113): the `coverage` check
2
-- fails below `min` percent, or when coverage falls more than `max_drop`
3
-- points against the default bookmark. NULL: no rule.
4
CREATE TABLE coverage_settings (
5
    repo_id   INTEGER PRIMARY KEY REFERENCES repositories(id) ON DELETE CASCADE,
6
    min       REAL,
7
    max_drop  REAL
8
);