mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-02 19:04:09 +01:00
* Migrate History screen database call to SQLDelight - Move all migrations to SQLDelight - Move all tables to SQLDelight Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com> * Changes from review comments * Add adapters to database * Remove logging of database version in App * Change query name for paging source queries * Update migrations * Make SQLite Callback handle migration - To ensure it updates the database * Use SQLDelight Schema version for Callback database version Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com>
9 lines
209 B
Plaintext
9 lines
209 B
Plaintext
DROP INDEX IF EXISTS mangas_favorite_index;
|
|
|
|
CREATE INDEX library_favorite_index
|
|
ON mangas(favorite)
|
|
WHERE favorite = 1;
|
|
|
|
CREATE INDEX chapters_unread_by_manga_index
|
|
ON chapters(manga_id, read)
|
|
WHERE read = 0; |