Colin Watson has proposed merging ~cjwatson/launchpad:db-oci-recipe-build-build-request into launchpad:db-devel.
Commit message: Add OCIRecipeBuild.build_request column Requested reviews: Launchpad code reviewers (launchpad-reviewers) Related bugs: Bug #1847444 in Launchpad itself: "Support OCI image building" https://bugs.launchpad.net/launchpad/+bug/1847444 For more details, see: https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/383021 This is useful in order to be able to trace builds back to the build request that produced them. It's precisely analogous to SnapBuild.build_request (see DB patch 2209-83-4). -- Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:db-oci-recipe-build-build-request into launchpad:db-devel.
diff --git a/database/schema/patch-2210-15-1.sql b/database/schema/patch-2210-15-1.sql new file mode 100644 index 0000000..12bcb00 --- /dev/null +++ b/database/schema/patch-2210-15-1.sql @@ -0,0 +1,10 @@ +-- Copyright 2020 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 OCIRecipeBuild ADD COLUMN build_request integer REFERENCES job; + +COMMENT ON COLUMN OCIRecipeBuild.build_request IS 'The build request that caused this build to be created.'; + +INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 15, 1);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

