launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #31627
[Merge] ~lgp171188/launchpad:add-git-repository-url-rock-recipe into launchpad:db-devel
Guruprasad has proposed merging ~lgp171188/launchpad:add-git-repository-url-rock-recipe into launchpad:db-devel.
Commit message:
Add RockRecipe.git_repository_url
This is required for building rock recipes from a remote git repository
not hosted on Launchpad.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/474453
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/launchpad:add-git-repository-url-rock-recipe into launchpad:db-devel.
diff --git a/database/schema/patch-2211-28-3.sql b/database/schema/patch-2211-28-3.sql
new file mode 100644
index 0000000..7871e2d
--- /dev/null
+++ b/database/schema/patch-2211-28-3.sql
@@ -0,0 +1,14 @@
+-- Copyright 2024 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 RockRecipe
+ ADD COLUMN git_repository_url text,
+ DROP CONSTRAINT consistent_git_ref,
+ ADD CONSTRAINT consistent_git_ref CHECK (((git_repository IS NULL) AND (git_repository_url IS NULL)) = (git_path IS NULL)),
+ ADD CONSTRAINT valid_git_repository_url CHECK (valid_absolute_url(git_repository_url));
+
+COMMENT ON COLUMN RockRecipe.git_repository_url IS 'A URL to a Git repository with a branch containing a rock recipe.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 28, 3);
Follow ups