launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #27309
[Merge] ~twom/launchpad:add-affirmation-code-of-conduct into launchpad:db-devel
Tom Wardill has proposed merging ~twom/launchpad:add-affirmation-code-of-conduct into launchpad:db-devel.
Commit message:
Add affirmed column to signedcodeofconduct
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/406293
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/launchpad:add-affirmation-code-of-conduct into launchpad:db-devel.
diff --git a/database/schema/patch-2210-34-0.sql b/database/schema/patch-2210-34-0.sql
new file mode 100644
index 0000000..c9f85f5
--- /dev/null
+++ b/database/schema/patch-2210-34-0.sql
@@ -0,0 +1,11 @@
+-- Copyright 2021 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 signedcodeofconduct
+ ADD COLUMN affirmed boolean DEFAULT false;
+
+COMMENT ON COLUMN signedcodeofconduct.affirmed IS 'Code of conduct was affirmed via website interaction.'
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 34, 0);