diff options
author | David Baker <dave@matrix.org> | 2015-06-04 16:16:01 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-06-04 16:16:01 +0100 |
commit | 63a7b3ad1eb6f5e959ead1bae36d9037cad888a2 (patch) | |
tree | c23e3c36d5846420f91650c5dc0b7e024757815e /synapse/storage/__init__.py | |
parent | Merge pull request #175 from matrix-org/erikj/thumbnail_thread (diff) | |
download | synapse-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/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 75af44d787..71757c393a 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -348,7 +348,7 @@ def _upgrade_existing_database(cur, current_version, applied_delta_files, module_name, absolute_path, python_file ) logger.debug("Running script %s", relative_path) - module.run_upgrade(cur) + module.run_upgrade(cur, database_engine) elif ext == ".sql": # A plain old .sql file, just read and execute it logger.debug("Applying schema %s", relative_path) |