← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~twom/launchpad:ocirecipe-allow-internet into launchpad:db-devel

 

Tom Wardill has proposed merging ~twom/launchpad:ocirecipe-allow-internet into launchpad:db-devel.

Commit message:
Add allow_internet to OCIRecipe

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/387353
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/launchpad:ocirecipe-allow-internet into launchpad:db-devel.
diff --git a/database/schema/patch-2210-18-0.sql b/database/schema/patch-2210-18-0.sql
new file mode 100644
index 0000000..18534be
--- /dev/null
+++ b/database/schema/patch-2210-18-0.sql
@@ -0,0 +1,10 @@
+-- Copyright 202 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 OCIRecipe ADD COLUMN allow_internet boolean DEFAULT true NOT NULL;
+
+COMMENT ON COLUMN OCIRecipe.allow_internet IS 'If True, builds of this OCIRecipe may allow access to external network resources.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 18, 0);