← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-improve-livefs-scoring into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-improve-livefs-scoring into lp:launchpad/db-devel.

Commit message:
Add LiveFS.relative_build_score.

Requested reviews:
  Stuart Bishop (stub): db
  Launchpad code reviewers (launchpad-reviewers): db
Related bugs:
  Bug #1452543 in Launchpad itself: "livefs builds default to low scores, with no way to adjust defaults"
  https://bugs.launchpad.net/launchpad/+bug/1452543

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-improve-livefs-scoring/+merge/327638
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-improve-livefs-scoring into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-56-3.sql'
--- database/schema/patch-2209-56-3.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-56-3.sql	2017-07-18 16:37:40 +0000
@@ -0,0 +1,10 @@
+-- Copyright 2017 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 LiveFS ADD COLUMN relative_build_score integer DEFAULT 0 NOT NULL;
+
+COMMENT ON COLUMN LiveFS.relative_build_score IS 'A delta to the build score that is applied to all builds of this live filesystem.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 56, 3);