summary refs log tree commit diff
path: root/synapse/storage/schema/main
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-09-08 17:41:48 +0200
committerGitHub <noreply@github.com>2022-09-08 15:41:48 +0000
commitf799eac7ea96f943ad1272a5a81f845dfa08a254 (patch)
treef966214e3e9a49ac68364f0c51f82229ac442ff0 /synapse/storage/schema/main
parentUpdate docstrings to explain the impact of partial state (#13750) (diff)
downloadsynapse-f799eac7ea96f943ad1272a5a81f845dfa08a254.tar.xz
Add timestamp to user's consent (#13741)
Co-authored-by: reivilibre <olivier@librepush.net>
Diffstat (limited to 'synapse/storage/schema/main')
-rw-r--r--synapse/storage/schema/main/delta/72/06add_consent_ts_to_users.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/synapse/storage/schema/main/delta/72/06add_consent_ts_to_users.sql b/synapse/storage/schema/main/delta/72/06add_consent_ts_to_users.sql
new file mode 100644
index 0000000000..609eb1750f
--- /dev/null
+++ b/synapse/storage/schema/main/delta/72/06add_consent_ts_to_users.sql
@@ -0,0 +1,16 @@
+/* Copyright 2022 The Matrix.org Foundation C.I.C
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+ALTER TABLE users ADD consent_ts bigint;