Merge lp:~stub/launchpad/db-cleanups into lp:launchpad/db-devel

Proposed by Stuart Bishop
Status: Merged
Approved by: Stuart Bishop
Approved revision: no longer in the source branch.
Merged at revision: 10923
Proposed branch: lp:~stub/launchpad/db-cleanups
Merge into: lp:launchpad/db-devel
Prerequisite: lp:~stub/launchpad/pending-db-changes
Diff against target: 12 lines (+8/-0)
1 file modified
database/schema/patch-2208-78-1.sql (+8/-0)
To merge this branch: bzr merge lp:~stub/launchpad/db-cleanups
Reviewer Review Type Date Requested Status
Stuart Bishop (community) db Approve
Review via email: mp+70994@code.launchpad.net

Commit message

[r=stub][bug=815753] BugMessage.owner NOT NULL

Description of the change

Now fully populated, add a NOT NULL constraint to BugMessage.owner.

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) :
review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2208-78-1.sql'
2--- database/schema/patch-2208-78-1.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2208-78-1.sql 2011-08-19 12:21:48 +0000
4@@ -0,0 +1,8 @@
5+-- Copyright 2011 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
7+
8+SET client_min_messages=ERROR;
9+
10+ALTER TABLE BugMessage ALTER COLUMN owner SET NOT NULL;
11+
12+INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 78, 1);

Subscribers

People subscribed via source and target branches

to status/vote changes: