Merge lp:~cjwatson/launchpad/db-git-no-target-implies-owner into lp:launchpad/db-devel

Proposed by Colin Watson
Status: Merged
Merged at revision: 12912
Proposed branch: lp:~cjwatson/launchpad/db-git-no-target-implies-owner
Merge into: lp:launchpad/db-devel
Diff against target: 12 lines (+8/-0)
1 file modified
database/schema/patch-2209-61-1.sql (+8/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-git-no-target-implies-owner
Reviewer Review Type Date Requested Status
William Grant db Approve
Stuart Bishop db Pending
Review via email: mp+250114@code.launchpad.net

Commit message

Drop GitRepository.target_implies_owner constraint.

Description of the change

GitRepository.target_default implying GitRepository.owner_default has some difficult-to-resolve consequences for permissions, since the target owner might legitimately not be the repository owner and thus might not be able to set the owner-target default. We agreed in the Launchpad team meeting last night to remove this restriction, so we need to drop the constraint that enforces it.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'database/schema/patch-2209-61-1.sql'
--- database/schema/patch-2209-61-1.sql 1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-61-1.sql 2015-02-18 11:20:31 +0000
@@ -0,0 +1,8 @@
1-- Copyright 2015 Canonical Ltd. This software is licensed under the
2-- GNU Affero General Public License version 3 (see the file LICENSE).
3
4SET client_min_messages=ERROR;
5
6ALTER TABLE GitRepository DROP CONSTRAINT target_implies_owner;
7
8INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 61, 1);

Subscribers

People subscribed via source and target branches

to status/vote changes: