← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:merge-db-stable into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:merge-db-stable into launchpad:master.

Commit message:
Merge db-stable 3645352086 (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/383334
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2210-15-1.sql b/database/schema/patch-2210-15-1.sql
new file mode 100644
index 0000000..86197e1
--- /dev/null
+++ b/database/schema/patch-2210-15-1.sql
@@ -0,0 +1,12 @@
+-- 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.';
+
+CREATE INDEX ocirecipebuild__build_request__idx ON OCIRecipeBuild (build_request);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 15, 1);