Skip to content

Compatible versioning and migrations #85

Answered by ryanheise
ryanheise asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mugikhan , I have an Android app which has an existing SQLite database. When reimplementing it in Flutter, I used sqflite which allowed the migrations to work in a compatible way with the original app. I am now reimplementing the DB code using sqlite_async and I didn't like the idea of it ignoring the current version that's embedded in the database and basically losing its place in which version it's migrating from and to.

Fortunately I've since realised that the sqlite_async migrations API is all in a separate class which I don't need to use. So what I've done is written my own migration implementation that is compatible with Android's approach. With this, it picks up the correct ins…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stevensJourney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #80 on February 03, 2025 13:19.