ALTER TABLE revision.commit DROP CONSTRAINT trunk_or_stable_branch_id;
ALTER TABLE revision.commit ADD CONSTRAINT trunk_or_stable_branch_id CHECK (trunk OR (stable_branch_id IS NOT NULL AND stable_branch_id > 0));
