Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Commit

Permalink
restore database fallbackToDestructiveMigration
Browse files Browse the repository at this point in the history
  • Loading branch information
befora committed Aug 26, 2018
1 parent f21aab5 commit 725fdc2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AppModule {
@AppScope
fun provideAppDatabaseDao(context: Context) = Room
.databaseBuilder(context, AppDatabase::class.java, DATABASE_NAME)
.fallbackToDestructiveMigration()
.addMigrations(AppDatabaseMigrations.MIGRATION_1_2)
.build()
.appDatabaseDao()
Expand Down

0 comments on commit 725fdc2

Please sign in to comment.