Execute migrations programmatically
- Lenguaje dominante
- Kotlin
- Estrellas
- 4.8k
- Forks
- 593
- Merge medio
- 1 min
- PR fusionados (30 d)
- 1
Descripción
Is it possible to execute all the migrations programmatically?
The problem I'm having seems to be that Android backup feature is restoring a previous DB version after migrations had already been executed causing my app to crash whenever accessing a column or table that didn't exist in previous version. I was hoping I could force migrations to be executed again.
I've set android:allowBackup=false on AndroidManifest application element already, but was true till I started having this issue. Seems that disabling this feature prevents from new backups to be made but still restores if there is a backup.
When I say "execute all migrations programmatically" I mean a command like in rails would be "rake db:migrate" or "knex migrate:latest" with knex.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.