internal/store/migrations/0037_mr_draft.up.sql

v1.20.1
gitbay/internal/store/migrations/0037_mr_draft.up.sql history · blame · raw

6 lines · 420 bytes

1-- A merge request opened to show work in progress rather than to ask for
2-- a merge. Deliberately a flag, not a state: state is open | merged |
3-- closed | source_gone, and adding a fifth would change what every
4-- `state = 'open'` query means, including the merge gates and the review
5-- queue. A draft is open; it is just not asking yet (#111).
6ALTER TABLE merge_requests ADD COLUMN draft INTEGER NOT NULL DEFAULT 0;