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

Commit

Permalink
Set database to truncate mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Nov 23, 2018
1 parent b9db2e1 commit 8cf4bb9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class ApplicationInstance : SharedApplicationInstance() {
)
.allowMainThreadQueries()
.addCallback(RoomCreationCallback)
.setJournalMode(RoomDatabase.JournalMode.TRUNCATE)
.addMigrations(
Migration2, Migration3, Migration4,
Migration5, Migration6, Migration7,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

package de.dreier.mytargets.features.statistics

import android.content.Context
import android.content.Intent
import android.databinding.DataBindingUtil
import android.os.Build
Expand Down

0 comments on commit 8cf4bb9

Please sign in to comment.