minor code style formatting

This commit is contained in:
Tibor Kaputa 2021-12-25 21:20:28 +01:00 committed by GitHub
parent 1b7cd2fc3c
commit 0b8193593f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,17 +37,17 @@ abstract class EventsDatabase : RoomDatabase() {
synchronized(EventsDatabase::class) {
if (db == null) {
db = Room.databaseBuilder(context.applicationContext, EventsDatabase::class.java, "events.db")
.addCallback(object : Callback() {
override fun onCreate(db: SupportSQLiteDatabase) {
super.onCreate(db)
insertRegularEventType(context)
}
})
.addMigrations(MIGRATION_1_2)
.addMigrations(MIGRATION_2_3)
.addMigrations(MIGRATION_3_4)
.addMigrations(MIGRATION_4_5)
.build()
.addCallback(object : Callback() {
override fun onCreate(db: SupportSQLiteDatabase) {
super.onCreate(db)
insertRegularEventType(context)
}
})
.addMigrations(MIGRATION_1_2)
.addMigrations(MIGRATION_2_3)
.addMigrations(MIGRATION_3_4)
.addMigrations(MIGRATION_4_5)
.build()
db!!.openHelper.setWriteAheadLoggingEnabled(true)
}
}