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

Proposed by Guruprasad
Status: Merged
Approved by: Guruprasad
Approved revision: 91e88a76a7dea9df5162e734851f74c2e2a42b5b
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: 20 lines (+14/-0)
1 file modified
database/schema/patch-2210-47-0.sql (+14/-0)
Reviewer Review Type Date Requested Status
Guruprasad Approve
Review via email: mp+423625@code.launchpad.net

Commit message

Merge db-stable 8e7f6df436 (Add Distribution.security_admin)

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

Deployed to the production database today. Self-approving.

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-47-0.sql b/database/schema/patch-2210-47-0.sql
2new file mode 100644
3index 0000000..90a632e
4--- /dev/null
5+++ b/database/schema/patch-2210-47-0.sql
6@@ -0,0 +1,14 @@
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 Distribution
13+ ADD COLUMN security_admin integer REFERENCES Person;
14+
15+COMMENT ON COLUMN Distribution.security_admin IS 'The person or team responsible for managing security vulnerabilities in this distribution.';
16+
17+CREATE INDEX distribution__security_admin__idx
18+ ON distribution (security_admin);
19+
20+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 47, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: