pariyatti / mobile-app

The Pariyatti mobile app
https://pariyatti.app/
GNU Affero General Public License v3.0
8 stars 12 forks source link

SQLite => migration or flat files #71

Closed deobald closed 2 years ago

deobald commented 2 years ago

Tasks


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.

Option 2: Switch to NoSQL, kv, or flat files

Consider Hive?

deobald commented 2 years ago

Should we consider Sqflite? https://medium.com/flutter-community/migrating-a-mobile-database-in-flutter-sqlite-44ac618e4897