forked from MirrorHub/synapse
purge_history: fix sqlite syntax error
apparently sqlite insists on indexes being named
This commit is contained in:
parent
ac27f6a35e
commit
39bf47319f
1 changed files with 4 additions and 1 deletions
|
@ -2112,7 +2112,10 @@ class EventsStore(SQLBaseStore):
|
||||||
|
|
||||||
# create an index on should_delete because later we'll be looking for
|
# create an index on should_delete because later we'll be looking for
|
||||||
# the should_delete / shouldn't_delete subsets
|
# the should_delete / shouldn't_delete subsets
|
||||||
txn.execute("CREATE INDEX ON events_to_purge(should_delete)")
|
txn.execute(
|
||||||
|
"CREATE INDEX events_to_purge_should_delete"
|
||||||
|
" ON events_to_purge(should_delete)",
|
||||||
|
)
|
||||||
|
|
||||||
# First ensure that we're not about to delete all the forward extremeties
|
# First ensure that we're not about to delete all the forward extremeties
|
||||||
txn.execute(
|
txn.execute(
|
||||||
|
|
Loading…
Reference in a new issue