mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 14:20:23 +00:00
Fix port script for changes merged from develop
This commit is contained in:
parent
9c99ab4572
commit
2d5c693fd3
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,7 @@ def token_to_stream_ordering(token):
|
|||
return int(token[1:].split('_')[0])
|
||||
|
||||
|
||||
def run_upgrade(cur, database_engine, *args, **kwargs):
|
||||
def run_create(cur, database_engine, *args, **kwargs):
|
||||
logger.info("Porting pushers table, delta 31...")
|
||||
cur.execute("""
|
||||
CREATE TABLE IF NOT EXISTS pushers2 (
|
||||
|
@ -73,3 +73,6 @@ def run_upgrade(cur, database_engine, *args, **kwargs):
|
|||
cur.execute("DROP TABLE pushers")
|
||||
cur.execute("ALTER TABLE pushers2 RENAME TO pushers")
|
||||
logger.info("Moved %d pushers to new table", count)
|
||||
|
||||
def run_upgrade(cur, database_engine, *args, **kwargs):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue