mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-23 16:01:15 +00:00
7 lines
424 B
MySQL
7 lines
424 B
MySQL
|
ALTER TABLE pull_requests DROP CONSTRAINT pull_requests_pkey;
|
||
|
ALTER TABLE pull_requests DROP CONSTRAINT pull_requests_pr_id_key;
|
||
|
|
||
|
ALTER TABLE pull_requests ADD CONSTRAINT pull_requests_pkey PRIMARY KEY (pr_id, issue_id);
|
||
|
ALTER TABLE pull_requests ADD CONSTRAINT pull_requests_pr_id_key UNIQUE (pr_id, issue_id);
|
||
|
ALTER TABLE pull_requests ADD CONSTRAINT pull_requests_fkey FOREIGN KEY (issue_id) REFERENCES issues(issue_id);
|