Merge ~ilasc/launchpad:db-add-jsonb-to-revision-status-artifact into launchpad:db-devel

Proposed by Ioana Lasc
Status: Merged
Approved by: Ioana Lasc
Approved revision: e8e391b852777810bb2ff866cf3a72da7d920b9d
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ilasc/launchpad:db-add-jsonb-to-revision-status-artifact
Merge into: launchpad:db-devel
Diff against target: 15 lines (+9/-0)
1 file modified
database/schema/patch-2211-03-0.sql (+9/-0)
Reviewer Review Type Date Requested Status
William Grant db Approve
Colin Watson (community) db Approve
Review via email: mp+427805@code.launchpad.net

Commit message

Add jsonb column to RevisionStatusReport

Description of the change

This will be used to store SOSS-related metadata.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve (db)
Revision history for this message
Ioana Lasc (ilasc) wrote :

Renamed column to `properties` and moved to RevisionStatusReport.
Intentionally left nullable.
Ready for another look.

Revision history for this message
Colin Watson (cjwatson) :
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-03-0.sql b/database/schema/patch-2211-03-0.sql
2new file mode 100644
3index 0000000..188c38a
4--- /dev/null
5+++ b/database/schema/patch-2211-03-0.sql
6@@ -0,0 +1,9 @@
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 RevisionStatusReport
13+ ADD COLUMN properties jsonb;
14+
15+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 03, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: