← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-git-subscriptions-by-path into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-git-subscriptions-by-path into lp:launchpad/db-devel.

Commit message:
Add GitSubscription.paths column.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers): db

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-git-subscriptions-by-path/+merge/310470

This will be used to allow subscribing to only particular reference paths within a Git repository.

See https://code.launchpad.net/~cjwatson/launchpad/git-subscriptions-by-path/+merge/310471 for the corresponding code changes.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-git-subscriptions-by-path into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-61-9.sql'
--- database/schema/patch-2209-61-9.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-61-9.sql	2016-11-09 18:21:12 +0000
@@ -0,0 +1,10 @@
+-- Copyright 2016 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 GitSubscription ADD COLUMN paths text;
+
+COMMENT ON COLUMN GitSubscription.paths IS 'A space-separated list of patterns matching subscribed reference paths.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 61, 9);


References