← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-dspc-archive-nullable into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-dspc-archive-nullable into lp:launchpad/db-devel.

Commit message:
Make DistributionSourcePackageCache.archive nullable, so that we can use a NULL archive to represent a SeriesSourcePackageBranch.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-dspc-archive-nullable/+merge/295613

Make DistributionSourcePackageCache.archive nullable, so that we can use a NULL archive to represent a SeriesSourcePackageBranch.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-dspc-archive-nullable into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-78-1.sql'
--- database/schema/patch-2209-78-1.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-78-1.sql	2016-05-24 17:26:07 +0000
@@ -0,0 +1,8 @@
+-- Copyright 2016 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 DistributionSourcePackageCache ALTER COLUMN archive DROP NOT NULL;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 78, 1);