make sure due is converted to int on upgrade

This commit is contained in:
Damien Elmes 2011-04-21 11:28:37 +09:00
parent 431fd2585e
commit 5278b3c2bb

View file

@ -252,7 +252,7 @@ when 0 then 1
when 1 then 2
when 2 then 0
else type end),
due, cast(interval as int),
cast(due as int), cast(interval as int),
cast(factor*1000 as int), reps, noCount, 0, 0, 0, "" from cards2
order by created""")
db.execute("drop table cards2")