launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #29023
[Merge] ~andrey-fedoseev/launchpad:db-more-vulnerability-dates into launchpad:db-devel
Andrey Fedoseev has proposed merging ~andrey-fedoseev/launchpad:db-more-vulnerability-dates into launchpad:db-devel.
Commit message:
DB patch to add `vulnerability.crd` and `.date_made_public_at_usn` columns
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~andrey-fedoseev/launchpad/+git/launchpad/+merge/428613
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~andrey-fedoseev/launchpad:db-more-vulnerability-dates into launchpad:db-devel.
diff --git a/database/schema/patch-2211-04-0.sql b/database/schema/patch-2211-04-0.sql
new file mode 100644
index 0000000..68cb09a
--- /dev/null
+++ b/database/schema/patch-2211-04-0.sql
@@ -0,0 +1,20 @@
+-- Copyright 2022 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 Vulnerability
+ ADD COLUMN date_made_public_at_usn timestamp without time zone
+;
+
+ALTER TABLE Vulnerability
+ ADD COLUMN crd timestamp without time zone
+;
+
+COMMENT ON COLUMN Vulnerability.date_made_public_at_usn
+ IS 'The date this vulnerability was made public at Ubuntu Security Notices';
+
+COMMENT ON COLUMN Vulnerability.crd
+ IS 'Coordinated Release Date';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 04, 0);