← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~pappacena/launchpad:ocirecipe-private-dbpatch into launchpad:db-devel

 

Thiago F. Pappacena has proposed merging ~pappacena/launchpad:ocirecipe-private-dbpatch into launchpad:db-devel.

Commit message:
Adding OCIRecipe.private column

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/397167

Corresponding code changes: https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/397176
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~pappacena/launchpad:ocirecipe-private-dbpatch into launchpad:db-devel.
diff --git a/database/schema/patch-2210-26-0.sql b/database/schema/patch-2210-26-0.sql
new file mode 100644
index 0000000..9b919d6
--- /dev/null
+++ b/database/schema/patch-2210-26-0.sql
@@ -0,0 +1,13 @@
+-- Copyright 2016 Canonical Ltd.  This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+-- OCIRecipe privacy model is based only on ownership, similarly to Archives.
+ALTER TABLE OCIRecipe ADD COLUMN private boolean DEFAULT false NOT NULL;
+
+COMMENT ON COLUMN OCIRecipe.private
+    IS 'Whether or not this OCI recipe is private.';
+
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 26, 0);

Follow ups