← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-snap-channels into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-snap-channels into lp:launchpad/db-devel.

Commit message:
Add Snap.store_channels column.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers): db
Related bugs:
  Bug #1597819 in Launchpad itself: "Add option to automatically release snap packages to channels after upload"
  https://bugs.launchpad.net/launchpad/+bug/1597819

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-snap-channels/+merge/298803

Add Snap.store_channels column listing the channels (if any) to which a snap package should be released after a successful upload.  This will just be a JSON-encoded array; we don't need anything more complicated.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-snap-channels into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-69-5.sql'
--- database/schema/patch-2209-69-5.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-69-5.sql	2016-06-30 16:10:32 +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 Snap ADD COLUMN store_channels text;
+
+COMMENT ON COLUMN Snap.store_channels IS 'Channels to which to release this snap package after uploading it to the store.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 69, 5);


Follow ups