aboutsummaryrefslogtreecommitdiff
path: root/sqitch/revert/change_git_branches_primary_key.sql
blob: 9d548c38f5a07201baecbd2b26defafd2280bdc2 (plain)
1
2
3
4
5
6
7
8
9
-- Revert guix-data-service:change_git_branches_primary_key from pg

BEGIN;

ALTER TABLE git_branches DROP CONSTRAINT git_branches_pkey;

ALTER TABLE git_branches ADD PRIMARY KEY (name, commit);

COMMIT;