launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #23476
[Merge] lp:~cjwatson/launchpad/db-snap-build-record-code into lp:launchpad/db-devel
Colin Watson has proposed merging lp:~cjwatson/launchpad/db-snap-build-record-code into lp:launchpad/db-devel.
Commit message:
Add SnapBuild.branch, SnapBuild.git_repository, SnapBuild.git_repository_url, and SnapBuild.git_path columns.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers): db
Related bugs:
Bug #1639975 in Launchpad itself: "support for building private snaps"
https://bugs.launchpad.net/launchpad/+bug/1639975
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-snap-build-record-code/+merge/365355
See https://code.launchpad.net/~cjwatson/launchpad/snap-build-record-code/+merge/365356.
--
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-snap-build-record-code into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2210-02-0.sql'
--- database/schema/patch-2210-02-0.sql 1970-01-01 00:00:00 +0000
+++ database/schema/patch-2210-02-0.sql 2019-04-01 15:03:34 +0000
@@ -0,0 +1,20 @@
+-- Copyright 2019 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 SnapBuild
+ ADD COLUMN branch integer REFERENCES branch,
+ ADD COLUMN git_repository integer REFERENCES gitrepository,
+ ADD COLUMN git_repository_url text,
+ ADD COLUMN git_path text;
+
+CREATE INDEX snapbuild__branch__idx ON SnapBuild(branch);
+CREATE INDEX snapbuild__git_repository__idx ON SnapBuild(git_repository);
+
+COMMENT ON COLUMN SnapBuild.branch IS 'The Bazaar branch for this build.';
+COMMENT ON COLUMN SnapBuild.git_repository IS 'The Git repository for this build.';
+COMMENT ON COLUMN SnapBuild.git_repository_url IS 'The Git repository URL for this build.';
+COMMENT ON COLUMN SnapBuild.git_path IS 'The Git branch path for this build.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 02, 0);
References