launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #23271
[Merge] lp:~abrody/launchpad/https-mirror-dbchange into lp:launchpad
Andy Brody has proposed merging lp:~abrody/launchpad/https-mirror-dbchange into lp:launchpad.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
Related bugs:
Bug #1255120 in Launchpad itself: "Support listing HTTPS archive mirrors"
https://bugs.launchpad.net/launchpad/+bug/1255120
For more details, see:
https://code.launchpad.net/~abrody/launchpad/https-mirror-dbchange/+merge/362640
Add column DistributionMirror.https_base_url, which is needed to add support for listing HTTPS archive and release mirrors.
--
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~abrody/launchpad/https-mirror-dbchange into lp:launchpad.
=== added file 'database/schema/patch-2209-99-0.sql'
--- database/schema/patch-2209-99-0.sql 1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-99-0.sql 2019-02-02 21:29:23 +0000
@@ -0,0 +1,15 @@
+-- Copyright 2019 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 DistributionMirror
+ ADD COLUMN https_base_url text,
+ ADD CONSTRAINT distributionmirror_https_base_url_key UNIQUE (https_base_url),
+ ADD CONSTRAINT valid_https_base_url CHECK (valid_absolute_url(https_base_url)),
+ DROP CONSTRAINT one_or_more_urls,
+ ADD CONSTRAINT one_or_more_urls CHECK (http_base_url IS NOT NULL OR https_base_url IS NOT NULL OR ftp_base_url IS NOT NULL OR rsync_base_url IS NOT NULL);
+
+COMMENT ON COLUMN DistributionMirror.https_base_url IS 'The HTTPS URL used to access the mirror.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 87, 0);
Follow ups