summary refs log tree commit diff
path: root/scripts/synapse_port_db
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-01-07 14:18:43 +0000
committerGitHub <noreply@github.com>2020-01-07 14:18:43 +0000
commit85db7f73be15cc088f5e378980021e335001ce87 (patch)
treef6efe9db7d54e76af87b14cac70461b6a3a3d09f /scripts/synapse_port_db
parentAsync/await for background updates (#6647) (diff)
downloadsynapse-85db7f73be15cc088f5e378980021e335001ce87.tar.xz
Add a background update to clear tombstoned rooms from the directory (#6648)
* Add a background update to clear tombstoned rooms from the directory

* use the ABC metaclass
Diffstat (limited to 'scripts/synapse_port_db')
-rwxr-xr-xscripts/synapse_port_db5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db
index eb927f2094..cb77314f1e 100755
--- a/scripts/synapse_port_db
+++ b/scripts/synapse_port_db
@@ -166,6 +166,11 @@ class Store(
             logger.exception("Failed to insert: %s", table)
             raise
 
+    def set_room_is_public(self, room_id, is_public):
+        raise Exception(
+            "Attempt to set room_is_public during port_db: database not empty?"
+        )
+
 
 class MockHomeserver:
     def __init__(self, config):