← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~stevenk/launchpad/index-previewdiff-merge_proposal into lp:launchpad

 

Steve Kowalik has proposed merging lp:~stevenk/launchpad/index-previewdiff-merge_proposal into lp:launchpad with lp:~stevenk/launchpad/drop-previewdiff-garbo as a prerequisite.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~stevenk/launchpad/index-previewdiff-merge_proposal/+merge/162915

Add an index onto PreviewDiff.merge_propsosal and set it to not null now that it is populated.
-- 
https://code.launchpad.net/~stevenk/launchpad/index-previewdiff-merge_proposal/+merge/162915
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stevenk/launchpad/index-previewdiff-merge_proposal into lp:launchpad.
=== added file 'database/schema/patch-2209-44-1.sql'
--- database/schema/patch-2209-44-1.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-44-1.sql	2013-05-08 02:24:41 +0000
@@ -0,0 +1,10 @@
+-- Copyright 2013 Canonical Ltd.  This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+CREATE INDEX previewdiff__merge_proposal__idx
+    ON previewdiff (merge_proposal);
+ALTER TABLE previewdiff ALTER COLUMN merge_proposal SET NOT NULL;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 44, 1);