Tushar Gupta has proposed merging ~tushar5526/launchpad:merge-db-stable into launchpad:master.
Requested reviews: Launchpad code reviewers (launchpad-reviewers) For more details, see: https://code.launchpad.net/~tushar5526/launchpad/+git/launchpad/+merge/486310 -- Your team Launchpad code reviewers is requested to review the proposed merge of ~tushar5526/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2211-41-0.sql b/database/schema/patch-2211-41-0.sql new file mode 100644 index 0000000..01ed39c --- /dev/null +++ b/database/schema/patch-2211-41-0.sql @@ -0,0 +1,21 @@ +-- Copyright 2025 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 CharmRecipe + ADD COLUMN git_repository_url text; + +ALTER TABLE CharmRecipe + 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)) NOT VALID; + +ALTER TABLE CharmRecipe + ADD CONSTRAINT consistent_vcs CHECK (null_count(ARRAY[git_repository, octet_length(git_repository_url)]) >= 1) NOT VALID; + +ALTER TABLE CharmRecipe + ADD CONSTRAINT valid_git_repository_url CHECK (valid_absolute_url(git_repository_url)) NOT VALID; + +COMMENT ON COLUMN CharmRecipe.git_repository_url IS 'A URL to a Git repository with a branch containing a charm recipe.'; + +INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 41, 0);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : launchpad-reviewers@lists.launchpad.net Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp