Anki/rslib/src/storage
Damien Elmes 90fa38495e reindex when checking database
Came across a user with a corrupt index:

sqlite> pragma integrity_check;
 integrity_check = wrong # of entries in index ix_revlog_cid
 integrity_check = wrong # of entries in index ix_cards_sched

This is not picked up by a quick check, and a vacuum does not
fix it, but a reindex does.

AnkiWeb currently performs a full check when a file is uploaded
to it, so this was leading to "corrupt" to show up when syncing
the collection, with a local DB check not reporting/fixing the issue.
2020-10-05 17:40:43 +10:00
..
card update schema to fix default initial ease in deck configs 2020-09-22 08:16:39 +10:00
config more syncing work 2020-06-01 13:57:10 +10:00
deck reimplement congrats screen in Rust+Typescript 2020-09-01 10:24:38 +10:00
deckconf rename downgrade method for clarity 2020-09-22 15:53:26 +10:00
graves rework usn handling in sync 2020-06-01 13:57:10 +10:00
note rename some card+note fields in backend 2020-09-01 10:24:38 +10:00
notetype don't crash when upgrading collection with ntid of 0 2020-08-23 14:14:44 +10:00
revlog log manual reschedule, but ignore the log entry in the stats 2020-09-02 17:56:23 +10:00
tag rework usn handling in sync 2020-06-01 13:57:10 +10:00
upgrades rename downgrade method for clarity 2020-09-22 15:53:26 +10:00
mod.rs rework usn handling in sync 2020-06-01 13:57:10 +10:00
schema11.sql initial work on DB handling in Rust 2020-03-20 21:15:23 +10:00
sqlite.rs reindex when checking database 2020-10-05 17:40:43 +10:00
sync.rs rework usn handling in sync 2020-06-01 13:57:10 +10:00
sync_check.rs another snapshot of sync work 2020-06-01 13:57:10 +10:00