← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-distroseries-publishing-options into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-distroseries-publishing-options into lp:launchpad/db-devel.

Commit message:
Add DistroSeries.publishing_options column.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-distroseries-publishing-options/+merge/278241

Add DistroSeries.publishing_options column, which will contain a JSON object.  I plan to move backports_not_automatic and include_long_descriptions into this shortly.  This also makes it easier to enable xz indexes and disable bz2 indexes on a per-series basis, both of which I'd like to do shortly.  In general it seems useful to have a reasonably flexible way to change publisher behaviour on a per-series basis.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-distroseries-publishing-options into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-71-0.sql'
--- database/schema/patch-2209-71-0.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-71-0.sql	2015-11-21 11:08:55 +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 DistroSeries ADD COLUMN publishing_options text;
+
+COMMENT ON COLUMN DistroSeries.publishing_options IS 'A JSON object containing options modifying the publisher''s behaviour for this series.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 71, 0);


Follow ups