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);