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

Proposed by Colin Watson
Status: Merged
Merged at revision: 13675
Proposed branch: lp:~cjwatson/launchpad/db-snap-revision-id
Merge into: lp:launchpad/db-devel
Diff against target: 14 lines (+10/-0)
1 file modified
database/schema/patch-2209-69-8.sql (+10/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-snap-revision-id
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+321688@code.launchpad.net

Commit message

Add SnapBuild.revision_id.

Description of the change

In future we might have more information in the form of some kind of manifest from snapcraft. However, I think it's still justified for this to be handled separately, because we can discover the tip revision of the top-level branch very early in the build and usefully expose it.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'database/schema/patch-2209-69-8.sql'
--- database/schema/patch-2209-69-8.sql 1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-69-8.sql 2017-04-03 12:37:00 +0000
@@ -0,0 +1,10 @@
1-- Copyright 2017 Canonical Ltd. This software is licensed under the
2-- GNU Affero General Public License version 3 (see the file LICENSE).
3
4SET client_min_messages=ERROR;
5
6ALTER TABLE SnapBuild ADD COLUMN revision_id text;
7
8COMMENT ON COLUMN SnapBuild.revision_id IS 'The revision ID of the branch used for this build, if available.';
9
10INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 69, 8);

Subscribers

People subscribed via source and target branches

to status/vote changes: