Merge ~cjwatson/launchpad:merge-db-stable into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 466ed9d4c4231a61a95a2b5684e3dbfc4b9f9263
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:merge-db-stable
Merge into: launchpad:master
Diff against target: 21 lines (+15/-0)
1 file modified
database/schema/patch-2210-34-0.sql (+15/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+406819@code.launchpad.net

Commit message

Merge db-stable 466ed9d4c4 (Add affirmed column to signedcodeofconduct)

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

Deployed to the production database today.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/database/schema/patch-2210-34-0.sql b/database/schema/patch-2210-34-0.sql
0new file mode 1006440new file mode 100644
index 0000000..fe97a37
--- /dev/null
+++ b/database/schema/patch-2210-34-0.sql
@@ -0,0 +1,15 @@
1-- Copyright 2021 Canonical Ltd. This software is licensed under the
2-- GNU Affero General Public License version 3 (see the file LICENSE).
3
4SET client_min_messages=ERROR;
5
6ALTER TABLE signedcodeofconduct
7 ADD COLUMN affirmed boolean,
8 ADD COLUMN version text;
9
10ALTER TABLE signedcodeofconduct ADD CONSTRAINT only_one_method CHECK (NOT affirmed OR signing_key_fingerprint IS NULL);
11
12COMMENT ON COLUMN signedcodeofconduct.affirmed IS 'Code of conduct was affirmed via website interaction.';
13COMMENT ON COLUMN signedcodeofconduct.version IS 'Version of the Code of Conduct that was signed.';
14
15INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 34, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: