OXYGENHUB
◆ v0.9.19 oxygenhub / crates / hub / migrations-pg / 0088_flow_skip.sql
635 B · SQL · last changed Push without starting a run: [skip flow] (closes #284) 15 days ago source blame history raw
367f34b8 Andy McCall ↶ 1
-- Pushing without a run (oxygenhub#284): `[skip flow]`, `[skip ci]` or
2
-- `[ci skip]` in the newest pushed change's message records a skipped run
3
-- instead of starting jobs. Where a maintainer allows it: `any` bookmark
4
-- (the default), `others` than the default bookmark, or `never`.
5
ALTER TABLE repositories ADD COLUMN flow_skip TEXT NOT NULL DEFAULT 'any';
6
7
-- A skipped run is recorded with status `skipped`.
8
ALTER TABLE flow_runs DROP CONSTRAINT flow_runs_status_check;
9
ALTER TABLE flow_runs ADD CONSTRAINT flow_runs_status_check
10
    CHECK (status IN ('queued', 'running', 'passed', 'failed', 'error', 'cancelled', 'skipped'));