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

Proposed by Colin Watson on 2016-06-30
Status: Merged
Merged at revision: 13504
Proposed branch: lp:~cjwatson/launchpad/db-snap-channels
Merge into: lp:launchpad/db-devel
Diff against target: 14 lines (+10/-0)
1 file modified
database/schema/patch-2209-69-5.sql (+10/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-snap-channels
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve on 2016-07-11
Launchpad code reviewers db 2016-06-30 Pending
Review via email: mp+298803@code.launchpad.net

Commit message

Add Snap.store_channels column.

Description of the change

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.

To post a comment you must log in.

LGTM - one minor comment you should feel free to ignore.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-69-5.sql'
2--- database/schema/patch-2209-69-5.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-69-5.sql 2016-07-12 13:54:59 +0000
4@@ -0,0 +1,10 @@
5+-- Copyright 2016 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
7+
8+SET client_min_messages=ERROR;
9+
10+ALTER TABLE Snap ADD COLUMN store_channels text;
11+
12+COMMENT ON COLUMN Snap.store_channels IS 'Channels to release this snap package to after uploading it to the store.';
13+
14+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 69, 5);

Subscribers

People subscribed via source and target branches

to status/vote changes: