internal/store/migrations/0056_mr_labels.up.sql

c6c5cb340929ee44650344d2fe40f5badb7bd65a
gitbay/internal/store/migrations/0056_mr_labels.up.sql

7 lines · 349 bytes

1-- Labels on merge requests, carried the same way issues carry them
2-- (#231). The label rows themselves are shared: repo or org scoped.
3CREATE TABLE mr_labels (
4    mr_id    INTEGER NOT NULL REFERENCES merge_requests(id) ON DELETE CASCADE,
5    label_id INTEGER NOT NULL REFERENCES labels(id) ON DELETE CASCADE,
6    PRIMARY KEY (mr_id, label_id)
7);
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