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

568741bf3226b21a023ff5dcd22b00fa0047350c
gitbay/internal/store/migrations/0037_mr_draft.up.sql

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;
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form