mirror of
https://github.com/ankitects/anki.git
synced 2026-01-18 00:09:01 -05:00
- notes with wrong field count are now recovered instead of being deleted - notes with missing note types are now recovered - notes with missing cards are now recovered - recover_missing_deck() still needs implementing - checks required
19 lines
No EOL
328 B
SQL
19 lines
No EOL
328 B
SQL
update cards
|
|
set
|
|
due = (
|
|
case
|
|
when queue = 2
|
|
and due > 100000 then ?1
|
|
else min(max(round(due), -2147483648), 2147483647)
|
|
end
|
|
),
|
|
mod = ?2,
|
|
usn = ?3
|
|
where
|
|
due != (
|
|
case
|
|
when queue = 2
|
|
and due > 100000 then ?1
|
|
else min(max(round(due), -2147483648), 2147483647)
|
|
end
|
|
); |