File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/src/main/java/mega/privacy/android/app Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ class LegacyDatabaseMigrationImpl @Inject constructor(
37
37
" ${SqliteDatabaseHandler .KEY_OFF_PARENT } INTEGER," +
38
38
" ${SqliteDatabaseHandler .KEY_OFF_TYPE } INTEGER, " +
39
39
" ${SqliteDatabaseHandler .KEY_OFF_INCOMING } INTEGER, " +
40
- " ${SqliteDatabaseHandler .KEY_OFF_HANDLE_INCOMING } INTEGER )"
40
+ " ${SqliteDatabaseHandler .KEY_OFF_HANDLE_INCOMING } INTEGER, " +
41
+ " ${SqliteDatabaseHandler .KEY_OFF_LAST_MODIFIED_TIME } INTEGER )"
41
42
db.execSQL(CREATE_OFFLINE_TABLE )
42
43
43
44
val CREATE_CREDENTIALS_TABLE =
Original file line number Diff line number Diff line change @@ -2696,8 +2696,9 @@ class SqliteDatabaseHandler @Inject constructor(
2696
2696
}
2697
2697
2698
2698
override fun clearOffline () {
2699
- writableDatabase.execSQL(" DROP TABLE IF EXISTS $TABLE_OFFLINE " )
2700
- legacyDatabaseMigration.onCreate(writableDatabase)
2699
+ runBlocking {
2700
+ megaLocalRoomGateway.clearOffline()
2701
+ }
2701
2702
}
2702
2703
2703
2704
/* *
You can’t perform that action at this time.
0 commit comments