← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:db-artifactory-publish-3 into launchpad:db-devel

 

Colin Watson has proposed merging ~cjwatson/launchpad:db-artifactory-publish-3 into launchpad:db-devel.

Commit message:
Artifactory publishing: drop old constraints

Requested reviews:
  William Grant (wgrant): db
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/418875

This follows https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/418280.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:db-artifactory-publish-3 into launchpad:db-devel.
diff --git a/database/schema/patch-2210-44-2.sql b/database/schema/patch-2210-44-2.sql
new file mode 100644
index 0000000..fef03b4
--- /dev/null
+++ b/database/schema/patch-2210-44-2.sql
@@ -0,0 +1,12 @@
+-- Copyright 2022 Canonical Ltd.  This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+-- STEP 3, COLD
+
+-- Replaced by binarypackagerelease__build__bpn__key.
+ALTER TABLE BinaryPackageRelease
+    DROP CONSTRAINT binarypackagerelease_build_name_uniq;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 44, 2);