Alvaro Crespo Serrano has proposed merging ~alvarocs/launchpad:merge-db-stable into launchpad:master.
Commit message: Merge db-stable 70fb091072 Add content_templates to Distribution, Distributionsourcepackage, Product, Ociproject, Project. Requested reviews: Launchpad code reviewers (launchpad-reviewers) For more details, see: https://code.launchpad.net/~alvarocs/launchpad/+git/launchpad/+merge/477131 -- Your team Launchpad code reviewers is requested to review the proposed merge of ~alvarocs/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2211-30-0.sql b/database/schema/patch-2211-30-0.sql new file mode 100644 index 0000000..f77d8ab --- /dev/null +++ b/database/schema/patch-2211-30-0.sql @@ -0,0 +1,19 @@ +-- 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 distribution ADD COLUMN content_templates JSONB; +ALTER TABLE distributionsourcepackage ADD COLUMN content_templates JSONB; +ALTER TABLE product ADD COLUMN content_templates JSONB; +ALTER TABLE ociproject ADD COLUMN content_templates JSONB; +ALTER TABLE project ADD COLUMN content_templates JSONB; + +COMMENT ON COLUMN distribution.content_templates IS 'A JSON object that contains the content templates for a distribution'; +COMMENT ON COLUMN distributionsourcepackage.content_templates IS 'A JSON object that contains the content templates for a distribution source package'; +COMMENT ON COLUMN product.content_templates IS 'A JSON object that contains the content templates for a product'; +COMMENT ON COLUMN ociproject.content_templates IS 'A JSON object that contains the content templates for an OCI project'; +COMMENT ON COLUMN project.content_templates IS 'A JSON object that contains the content templates for a project'; + +INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 30, 0); +
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

