← Back to team overview

launchpad-reviewers team mailing list archive

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

 

Guruprasad has proposed merging ~lgp171188/launchpad:merge-db-stable into launchpad:master.

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

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/423625
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2210-47-0.sql b/database/schema/patch-2210-47-0.sql
new file mode 100644
index 0000000..90a632e
--- /dev/null
+++ b/database/schema/patch-2210-47-0.sql
@@ -0,0 +1,14 @@
+-- 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 Distribution
+    ADD COLUMN security_admin integer REFERENCES Person;
+
+COMMENT ON COLUMN Distribution.security_admin IS 'The person or team responsible for managing security vulnerabilities in this distribution.';
+
+CREATE INDEX distribution__security_admin__idx
+    ON distribution (security_admin);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 47, 0);