← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-mail-footer-pref into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-mail-footer-pref into lp:launchpad/db-devel.

Commit message:
Add PersonSettings.expanded_notification_footers.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers): db
Related bugs:
  Bug #1474071 in Launchpad itself: "Gmail filtering improvements"
  https://bugs.launchpad.net/launchpad/+bug/1474071

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-mail-footer-pref/+merge/264622

Add PersonSettings.expanded_notification_footers.

This is the first step in improving Gmail filterability of Launchpad mails.  A future DB branch will make the column DEFAULT false NOT NULL, once it's been backfilled.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-mail-footer-pref into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-68-0.sql'
--- database/schema/patch-2209-68-0.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-68-0.sql	2015-07-13 17:46:22 +0000
@@ -0,0 +1,10 @@
+-- Copyright 2015 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 PersonSettings ADD COLUMN expanded_notification_footers boolean;
+
+COMMENT ON COLUMN PersonSettings.expanded_notification_footers IS 'Include filtering information in e-mail footers.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 68, 0);