Merge ~andrey-fedoseev/launchpad:db-snap-base-features into launchpad:db-devel

Proposed by Andrey Fedoseev
Status: Merged
Approved by: Andrey Fedoseev
Approved revision: 0486a34174ce4eacc6c96a625f3fcced75673353
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~andrey-fedoseev/launchpad:db-snap-base-features
Merge into: launchpad:db-devel
Diff against target: 19 lines (+13/-0)
1 file modified
database/schema/patch-2211-06-0.sql (+13/-0)
Reviewer Review Type Date Requested Status
William Grant db Approve
Colin Watson (community) db Approve
Review via email: mp+429817@code.launchpad.net

Commit message

Add `SnapBase.features` column

Description of the change

The column is used to designate the features available for a snap base

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Needs a second DB review from William.

review: Approve (db)
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-06-0.sql b/database/schema/patch-2211-06-0.sql
2new file mode 100644
3index 0000000..b58d4ea
4--- /dev/null
5+++ b/database/schema/patch-2211-06-0.sql
6@@ -0,0 +1,13 @@
7+-- Copyright 2022 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 SnapBase
13+ ADD COLUMN features jsonb;
14+;
15+
16+COMMENT ON COLUMN SnapBase.features
17+ IS 'The features supported by this base.';
18+
19+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 06, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: