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

Proposed by Ines Almeida
Status: Merged
Approved by: Colin Watson
Approved revision: 26867aec89ab2ffd9840406b426c682fe0707b4a
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ines-almeida/launchpad:pro-enable-core18/db-patch
Merge into: launchpad:db-devel
Diff against target: 16 lines (+10/-0)
1 file modified
database/schema/patch-2211-23-0.sql (+10/-0)
Reviewer Review Type Date Requested Status
William Grant db Approve
Colin Watson (community) db Approve
Review via email: mp+452119@code.launchpad.net

Commit message

Add pro_enable field to Snap table

Description of the change

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

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve (db)
26867ae... by Ines Almeida

Address MP comments

Revision history for this message
Ines Almeida (ines-almeida) :
Revision history for this message
William Grant (wgrant) :
review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/database/schema/patch-2211-23-0.sql b/database/schema/patch-2211-23-0.sql
2new file mode 100644
3index 0000000..5e1bc83
4--- /dev/null
5+++ b/database/schema/patch-2211-23-0.sql
6@@ -0,0 +1,10 @@
7+-- Copyright 2023 Canonical Ltd. This software is licensed under the
8+-- GNU Affero General Public License version 3 (see the file LICENSE).
9+
10+SET client_min_messages=ERROR;
11+
12+ALTER TABLE Snap ADD COLUMN pro_enable boolean;
13+
14+COMMENT ON COLUMN Snap.pro_enable IS 'Whether the use of private archive dependencies of the base is allowed.';
15+
16+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 23, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: