mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix negative review times in DB check
This commit is contained in:
parent
27cf01d01f
commit
0180868b60
1 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
update revlog
|
||||
set
|
||||
ivl = min(max(round(ivl), -2147483648), 2147483647),
|
||||
lastIvl = min(max(round(lastIvl), -2147483648), 2147483647)
|
||||
where
|
||||
ivl != min(max(round(ivl), -2147483648), 2147483647)
|
||||
or lastIvl != min(max(round(lastIvl), -2147483648), 2147483647)
|
||||
set ivl = min(max(round(ivl), -2147483648), 2147483647),
|
||||
lastIvl = min(max(round(lastIvl), -2147483648), 2147483647),
|
||||
time = min(max(round(time), 0), 2147483647)
|
||||
where ivl != min(max(round(ivl), -2147483648), 2147483647)
|
||||
or lastIvl != min(max(round(lastIvl), -2147483648), 2147483647)
|
||||
or time != min(max(round(time), 0), 2147483647)
|
Loading…
Reference in a new issue