Merge ~andrey-fedoseev/launchpad:db-cve-discovered-by into launchpad:db-devel

Proposed by Andrey Fedoseev
Status: Merged
Approved by: Andrey Fedoseev
Approved revision: 3835505aae4dd0f25de4fb5079fb4dd80bd43c30
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~andrey-fedoseev/launchpad:db-cve-discovered-by
Merge into: launchpad:db-devel
Diff against target: 18 lines (+12/-0)
1 file modified
database/schema/patch-2211-07-0.sql (+12/-0)
Reviewer Review Type Date Requested Status
William Grant db Approve
Colin Watson (community) db Approve
Review via email: mp+429958@code.launchpad.net

Commit message

Add `Cve.discovered_by` column

Description of the change

It contains the name of person(s) or organization that discovered the CVE

This supersedes the existing `discoverer` column which is a reference to a `Person`

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Adding William for a second DB review.

review: Approve (db)
Revision history for this message
William Grant (wgrant) :
review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/database/schema/patch-2211-07-0.sql b/database/schema/patch-2211-07-0.sql
2new file mode 100644
3index 0000000..1cbcad4
4--- /dev/null
5+++ b/database/schema/patch-2211-07-0.sql
6@@ -0,0 +1,12 @@
7+-- Copyright 2022 Canonical Ltd. This software is licensed under the
8+-- GNU Affero General Public License version 3 (see the file LICENSE).
9+
10+SET client_min_messages=ERROR;
11+
12+ALTER TABLE Cve
13+ ADD COLUMN discovered_by text;
14+
15+COMMENT ON COLUMN Cve.discovered_by
16+ IS 'The name of person(s) or organization that discovered the CVE';
17+
18+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 07, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: