summary refs log tree commit diff
path: root/synapse/storage/schema/delta/14
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-06-04 16:16:01 +0100
committerDavid Baker <dave@matrix.org>2015-06-04 16:16:01 +0100
commit63a7b3ad1eb6f5e959ead1bae36d9037cad888a2 (patch)
treec23e3c36d5846420f91650c5dc0b7e024757815e /synapse/storage/schema/delta/14
parentMerge pull request #175 from matrix-org/erikj/thumbnail_thread (diff)
downloadsynapse-63a7b3ad1eb6f5e959ead1bae36d9037cad888a2.tar.xz
Add script to (re)convert the pushers table to changing the unique key. Also give the python db upgrade scripts the database engine so they can convert parameter strings, and add *args **kwargs to the upgrade function so we can add more args in future and previous scripts will ignore them.
Diffstat (limited to 'synapse/storage/schema/delta/14')
-rw-r--r--synapse/storage/schema/delta/14/upgrade_appservice_db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/14/upgrade_appservice_db.py b/synapse/storage/schema/delta/14/upgrade_appservice_db.py
index 9f3a4dd4c5..61232f9757 100644
--- a/synapse/storage/schema/delta/14/upgrade_appservice_db.py
+++ b/synapse/storage/schema/delta/14/upgrade_appservice_db.py
@@ -18,7 +18,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-def run_upgrade(cur):
+def run_upgrade(cur, *args, **kwargs):
     cur.execute("SELECT id, regex FROM application_services_regex")
     for row in cur.fetchall():
         try: