← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-livefsbuild-version into lp:launchpad/db-devel

 

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

Commit message:
Add LiveFSBuild.version.

Requested reviews:
  Stuart Bishop (stub): db
  Launchpad code reviewers (launchpad-reviewers): db
Related bugs:
  Bug #1496074 in Launchpad itself: "Enable passing version information to livefs builds"
  https://bugs.launchpad.net/launchpad/+bug/1496074

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-livefsbuild-version/+merge/271171

Add LiveFSBuild.version.  This is part of making it possible for users (e.g. cloud-image) to set their own serial numbers for builds.  The existing LiveFSBuild.version property is informational from LP's point of view, so it shouldn't be a problem to make it user-settable.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-livefsbuild-version into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-56-2.sql'
--- database/schema/patch-2209-56-2.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-56-2.sql	2015-09-15 18:28:29 +0000
@@ -0,0 +1,10 @@
+-- Copyright 2015 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 LiveFSBuild ADD COLUMN version text;
+
+COMMENT ON COLUMN LiveFSBuild.version IS 'A version string for this build.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 56, 2);