Execute migrations programmatically
- Lingua principale
- Kotlin
- Stelle
- 4.8k
- Fork
- 593
- Merge medio
- 1m
- PR unite (30g)
- 1
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.