I am writing a React-Native app which heavily relies on local storage, and have chosen TypeORMto handle this.
I am now entering a phase where my project is live, and I want to add new functionalities that require an adjustment to my datamodel. To start, I have used the react-native-example project. I have built my datamodel on this and would now like to implement a migration into it.
There seems to be no definitive manual/guide on how to perform migrations on React-Native. Since I don't have access to the databases of my users, I can't run the migrations manually. So far, I found out that there is a 'migrationsRun' option in the connection settings which can be set to true, forcing migrations to be executed at every launch of the app, if needed.
Question then is: How should the actual migrations be created, what should they look like (plain sql queries?), and where should I put them?
Any guidance on migrations in a react-native app would be very helpful.