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: mp+416729@code.launchpad.net

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
diff --git a/database/schema/patch-2210-43-0.sql b/database/schema/patch-2210-43-0.sql
0new file mode 1006440new file mode 100644
index 0000000..b51d2fa
--- /dev/null
+++ b/database/schema/patch-2210-43-0.sql
@@ -0,0 +1,19 @@
1-- Copyright 2022 Canonical Ltd. This software is licensed under the
2-- GNU Affero General Public License version 3 (see the file LICENSE).
3
4SET client_min_messages=ERROR;
5
6ALTER TABLE Cve
7 ADD COLUMN date_made_public timestamp without time zone,
8 ADD COLUMN discoverer integer REFERENCES Person,
9 ADD COLUMN cvss jsonb;
10
11COMMENT ON COLUMN Cve.date_made_public IS 'The date on which the CVE was made public.';
12
13COMMENT ON COLUMN Cve.discoverer IS 'The person who discovered this CVE.';
14
15COMMENT ON COLUMN Cve.cvss IS 'The CVSS score for this CVE.';
16
17CREATE INDEX cve__discoverer__idx ON Cve (discoverer);
18
19INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 43, 0);
diff --git a/database/schema/security.cfg b/database/schema/security.cfg
index 6199540..69dfec9 100644
--- a/database/schema/security.cfg
+++ b/database/schema/security.cfg
@@ -2350,6 +2350,7 @@ public.codereviewinlinecommentdraft = SELECT, UPDATE, DELETE
2350public.codereviewvote = SELECT, UPDATE2350public.codereviewvote = SELECT, UPDATE
2351public.commercialsubscription = SELECT, UPDATE2351public.commercialsubscription = SELECT, UPDATE
2352public.customlanguagecode = SELECT2352public.customlanguagecode = SELECT
2353public.cve = SELECT, UPDATE
2353public.distribution = SELECT, UPDATE2354public.distribution = SELECT, UPDATE
2354public.distributionsourcepackage = SELECT, INSERT, UPDATE, DELETE2355public.distributionsourcepackage = SELECT, INSERT, UPDATE, DELETE
2355public.distributionmirror = SELECT, UPDATE2356public.distributionmirror = SELECT, UPDATE

Subscribers

People subscribed via source and target branches

to status/vote changes: