← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~pappacena/launchpad:db-patch-oci-project-admin into launchpad:db-devel

 

Thiago F. Pappacena has proposed merging ~pappacena/launchpad:db-patch-oci-project-admin into launchpad:db-devel.

Commit message:
Database patch creating Distribution.oci_project_admin column, which should be used to grant permission to person/team that can manage OCI projects.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/381320
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~pappacena/launchpad:db-patch-oci-project-admin into launchpad:db-devel.
diff --git a/database/schema/patch-2210-14-0.sql b/database/schema/patch-2210-14-0.sql
new file mode 100644
index 0000000..3fbb078
--- /dev/null
+++ b/database/schema/patch-2210-14-0.sql
@@ -0,0 +1,9 @@
+-- Copyright 2020 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 oci_project_admin integer REFERENCES person;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 14, 0);