Merge ~lgp171188/launchpad:merge-db-stable into launchpad:master

Proposed by Guruprasad
Status: Merged
Approved by: Guruprasad
Approved revision: efdc5e9aad230f2d27cde53bba1a69724bbe9ab7
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~lgp171188/launchpad:merge-db-stable
Merge into: launchpad:master
Diff against target: 37 lines (+20/-0)
2 files modified
database/schema/patch-2210-43-0.sql (+19/-0)
database/schema/security.cfg (+1/-0)
Reviewer Review Type Date Requested Status
Guruprasad Approve
Review via email:

Commit message

Merge db-stable a40a29d50e (Add the date_made_public, discoverer, cvss columns to Cve)

To post a comment you must log in.
Revision history for this message
Guruprasad (lgp171188) wrote :

Self-approving as this has been deployed to production successfully.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/database/schema/patch-2210-43-0.sql b/database/schema/patch-2210-43-0.sql
2new file mode 100644
3index 0000000..b51d2fa
4--- /dev/null
5+++ b/database/schema/patch-2210-43-0.sql
6@@ -0,0 +1,19 @@
7+-- Copyright 2022 Canonical Ltd. This software is licensed under the
8+-- GNU Affero General Public License version 3 (see the file LICENSE).
10+SET client_min_messages=ERROR;
13+ ADD COLUMN date_made_public timestamp without time zone,
14+ ADD COLUMN discoverer integer REFERENCES Person,
15+ ADD COLUMN cvss jsonb;
17+COMMENT ON COLUMN Cve.date_made_public IS 'The date on which the CVE was made public.';
19+COMMENT ON COLUMN Cve.discoverer IS 'The person who discovered this CVE.';
21+COMMENT ON COLUMN Cve.cvss IS 'The CVSS score for this CVE.';
23+CREATE INDEX cve__discoverer__idx ON Cve (discoverer);
25+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 43, 0);
26diff --git a/database/schema/security.cfg b/database/schema/security.cfg
27index 6199540..69dfec9 100644
28--- a/database/schema/security.cfg
29+++ b/database/schema/security.cfg
30@@ -2350,6 +2350,7 @@ public.codereviewinlinecommentdraft = SELECT, UPDATE, DELETE
31 public.codereviewvote = SELECT, UPDATE
32 public.commercialsubscription = SELECT, UPDATE
33 public.customlanguagecode = SELECT
34+public.cve = SELECT, UPDATE
35 public.distribution = SELECT, UPDATE
36 public.distributionsourcepackage = SELECT, INSERT, UPDATE, DELETE
37 public.distributionmirror = SELECT, UPDATE


People subscribed via source and target branches

to status/vote changes: