← Back to team overview

launchpad-reviewers team mailing list archive

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

 

Stuart Bishop has proposed merging lp:~stub/launchpad/db-cleanups into lp:launchpad/db-devel with lp:~stub/launchpad/pending-db-changes as a prerequisite.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)
Related bugs:
  Bug #813761 in Launchpad itself: "Warnings from nondowntime-security-update.sh"
  https://bugs.launchpad.net/launchpad/+bug/813761
  Bug #815753 in Launchpad itself: "process-accepted, publish-distro, process-death-row and generate-contents-files should use their own DB users"
  https://bugs.launchpad.net/launchpad/+bug/815753

For more details, see:
https://code.launchpad.net/~stub/launchpad/db-cleanups/+merge/70994

Now fully populated, add a NOT NULL constraint to BugMessage.owner.
-- 
https://code.launchpad.net/~stub/launchpad/db-cleanups/+merge/70994
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stub/launchpad/db-cleanups into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2208-78-1.sql'
--- database/schema/patch-2208-78-1.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2208-78-1.sql	2011-08-10 06:48:40 +0000
@@ -0,0 +1,8 @@
+-- Copyright 2011 Canonical Ltd.  This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+ALTER TABLE BugMessage ALTER COLUMN owner SET NOT NULL;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 78, 1);