we'll use basic Drift migrations for now, and get rid of Drift+SQLite in a future release, in favour of looking up bookmarked items directly from the Dio cache
Currently, SQLite does not have any data migration. Adding new entities requires the complete removal of the app and re-installation of the app to correct the generated database files.
Option 1: Migration
Add a schema migration tool. This allows us to reuse the existing SQLite code, but it adds complexity.
Tasks
_kosaURL
field to theCards
table so we can look them up from Dio in a future release: https://github.com/pariyatti/mobile-app/blob/master/lib/local_database/cards.dart_kosaURL
in Shared Preferences instead of SQLite/Drift -- this has moved here: https://github.com/pariyatti/mobile-app/issues/83Currently, SQLite does not have any data migration. Adding new entities requires the complete removal of the app and re-installation of the app to correct the generated database files.
Option 1: Migration
Add a schema migration tool. This allows us to reuse the existing SQLite code, but it adds complexity.
Option 2: Switch to NoSQL, kv, or flat files
Consider Hive?