Colin Watson has proposed merging ~cjwatson/launchpad:db-bpph-spn into launchpad:db-devel.
Commit message: Add BinaryPackagePublishingHistory.sourcepackagename Requested reviews: William Grant (wgrant): db Launchpad code reviewers (launchpad-reviewers) For more details, see: https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/429767 This will be denormalized, allowing us to avoid expensive joins through `BinaryPackageRelease` and `BinaryPackageBuild` when looking up binary publications for a particular source package name. -- Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:db-bpph-spn into launchpad:db-devel.
diff --git a/database/schema/patch-2211-05-0.sql b/database/schema/patch-2211-05-0.sql new file mode 100644 index 0000000..6df5df8 --- /dev/null +++ b/database/schema/patch-2211-05-0.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; + +ALTER TABLE BinaryPackagePublishingHistory + ADD COLUMN sourcepackagename integer REFERENCES SourcePackageName; + +COMMENT ON COLUMN BinaryPackagePublishingHistory.sourcepackagename + IS 'The name of the source package that built this binary.'; + +INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 05, 0);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

