mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix problem dropping unique index
This commit is contained in:
parent
29278af8d9
commit
6d5791c92c
1 changed files with 2 additions and 1 deletions
|
@ -1475,7 +1475,8 @@ day = :d""", d=yesterday)
|
|||
self.deck.updateProgress()
|
||||
# remove indices
|
||||
indices = d.s.column0(
|
||||
"select name from sqlite_master where type = 'index'")
|
||||
"select name from sqlite_master where type = 'index' "
|
||||
"and sql != ''")
|
||||
for i in indices:
|
||||
d.s.statement("drop index %s" % i)
|
||||
# and q/a cache
|
||||
|
|
Loading…
Reference in a new issue