Thiago F. Pappacena has proposed merging ~pappacena/launchpad:ocirecipe-private-dbpatch-indexes into launchpad:master with ~pappacena/launchpad:ocirecipe-private-dbpatch as a prerequisite.
Requested reviews: Launchpad code reviewers (launchpad-reviewers) For more details, see: https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/399243 -- Your team Launchpad code reviewers is requested to review the proposed merge of ~pappacena/launchpad:ocirecipe-private-dbpatch-indexes into launchpad:master.
diff --git a/database/schema/patch-2210-26-4.sql b/database/schema/patch-2210-26-4.sql new file mode 100644 index 0000000..cc1553c --- /dev/null +++ b/database/schema/patch-2210-26-4.sql @@ -0,0 +1,12 @@ +-- Copyright 2021 Canonical Ltd. This software is licensed under the +-- GNU Affero General Public License version 3 (see the file LICENSE). + +SET client_min_messages=ERROR; + +CREATE UNIQUE INDEX accessartifact__ocirecipe__key + ON AccessArtifact(ocirecipe) WHERE ocirecipe IS NOT NULL; + +ALTER TABLE AccessArtifact VALIDATE CONSTRAINT has_artifact; + + +INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 26, 4);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

