← Back to team overview

launchpad-reviewers team mailing list archive

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

 

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

Commit message:
Add Snap.auto_build_channels and SnapBuild.channels.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)
Related bugs:
  Bug #1737994 in Launchpad itself: "build.snapcraft.io uses snapcraft from the deb archive"
  https://bugs.launchpad.net/launchpad/+bug/1737994

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

See https://code.launchpad.net/~cjwatson/launchpad/snap-build-channels/+merge/337360.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-snap-build-channels into lp:launchpad.
=== added file 'database/schema/patch-2209-83-1.sql'
--- database/schema/patch-2209-83-1.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-83-1.sql	2018-02-08 13:37:45 +0000
@@ -0,0 +1,12 @@
+-- Copyright 2018 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 auto_build_channels text;
+ALTER TABLE SnapBuild ADD COLUMN channels text;
+
+COMMENT ON COLUMN Snap.auto_build_channels IS 'A dictionary mapping snap names to channels to use when building this snap package.';
+COMMENT ON COLUMN SnapBuild.channels IS 'A dictionary mapping snap names to channels to use for this build.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 83, 1);


References