fix problem dropping unique index

This commit is contained in:
Damien Elmes 2009-03-13 06:13:26 +09:00
parent 29278af8d9
commit 6d5791c92c

View file

@ -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