← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ines-almeida/launchpad:pro-enable-core18/db-patch into launchpad:db-devel

 

Ines Almeida has proposed merging ~ines-almeida/launchpad:pro-enable-core18/db-patch into launchpad:db-devel.

Commit message:
Add pro_enable field to Snap table

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers): db

For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/452119

Snap recipes will gain a pro_enable field, which if set will permit the use of private archive dependencies of the base.

See LP125 spec for more details
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:pro-enable-core18/db-patch into launchpad:db-devel.
diff --git a/database/schema/patch-2211-23-0.sql b/database/schema/patch-2211-23-0.sql
new file mode 100644
index 0000000..65ef9bf
--- /dev/null
+++ b/database/schema/patch-2211-23-0.sql
@@ -0,0 +1,10 @@
+-- Copyright 2023 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 Snap ADD COLUMN pro_enable boolean DEFAULT false;;
+
+COMMENT ON COLUMN Snap.pro_enable IS 'Whether the use of private archive dependencies of the base is allowed.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 23, 0);