File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/it/niedermann/owncloud/notes/persistence Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010import android .util .Log ;
1111
1212import androidx .annotation .NonNull ;
13+ import androidx .room .AutoMigration ;
1314import androidx .room .Database ;
1415import androidx .room .Room ;
1516import androidx .room .RoomDatabase ;
5758 NotesListWidgetData .class ,
5859 ShareEntity .class ,
5960 Capabilities .class
60- }, version = 26
61+ }, version = 26 ,
62+ autoMigrations = { @ AutoMigration (from = 25 , to = 26 ) }
6163)
6264@ TypeConverters ({Converters .class })
6365public abstract class NotesDatabase extends RoomDatabase {
@@ -96,8 +98,6 @@ private static NotesDatabase create(final Context context) {
9698 new Migration_23_24 (context ),
9799 new Migration_24_25 ()
98100 )
99- .fallbackToDestructiveMigrationOnDowngrade ()
100- .fallbackToDestructiveMigration ()
101101 .addCallback (new RoomDatabase .Callback () {
102102 @ Override
103103 public void onCreate (@ NonNull SupportSQLiteDatabase db ) {
You can’t perform that action at this time.
0 commit comments