BrianJr03 / Issa-Chat-App

A simple way to chat with ChatGPT on Android
GNU General Public License v3.0
52 stars 2 forks source link

Fallback destructive migration is not safe way i will recommend to use incremental migration #39

Open myofficework000 opened 1 year ago

myofficework000 commented 1 year ago

https://github.com/BrianJr03/Issa-Chat-App/blob/082b4dcf98257affceb283f2ce37a723426b3176/app/src/main/java/jr/brian/issaaiapp/di/AppModule.kt#LL36C14-L36C14

Use Incremental Migrations: This involves breaking down complex migrations into smaller, incremental steps. Each step updates the database schema progressively while preserving data. This approach ensures a more controlled and data-safe migration process.

Reference: https://medium.com/@myofficework000/migration-in-room-db-babee083c562