summaryrefslogtreecommitdiff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2020-05-25 11:54:03 +0200
committerAndrej Shadura <andrewsh@debian.org>2020-05-25 11:54:03 +0200
commitda7f96aa2a3b1485dafa016f38aac1d4376b64e7 (patch)
tree2c4cdc1096370cff409af72b9e97d3edf5f84c59 /synapse/storage/schema
parentbef77b10b264d8c082a3604656e186ab162e5d64 (diff)
New upstream version 1.13.0
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/58/00background_update_ordering.sql19
1 files changed, 19 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/58/00background_update_ordering.sql b/synapse/storage/schema/delta/58/00background_update_ordering.sql
new file mode 100644
index 00000000..02dae587
--- /dev/null
+++ b/synapse/storage/schema/delta/58/00background_update_ordering.sql
@@ -0,0 +1,19 @@
+/* Copyright 2020 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.
+ */
+
+/* add an "ordering" column to background_updates, which can be used to sort them
+ to achieve some level of consistency. */
+
+ALTER TABLE background_updates ADD COLUMN ordering INT NOT NULL DEFAULT 0;