Readability fixes
This commit is contained in:
parent
7f2fe135b3
commit
ce1152f0d6
|
@ -29,16 +29,12 @@ public class AndroidPersistenceModule {
|
|||
@Singleton
|
||||
static ReactiveEntityStore<Persistable> provideDatabase(Application application) {
|
||||
// override onUpgrade to handle migrating to a new version
|
||||
DatabaseSource source = new DatabaseSource(application, Models.DEFAULT,
|
||||
"mercury_req_db", 1);
|
||||
DatabaseSource source = new DatabaseSource(application, Models.DEFAULT, "mercury_req_db", 1);
|
||||
if (BuildConfig.DEBUG) {
|
||||
// use this in development mode to drop and recreate the tables on every upgrade
|
||||
source.setTableCreationMode(TableCreationMode.DROP_CREATE);
|
||||
}
|
||||
Configuration configuration = source.getConfiguration();
|
||||
ReactiveEntityStore<Persistable> dataStore = ReactiveSupport.toReactiveStore(
|
||||
new EntityDataStore<>(configuration));
|
||||
return dataStore;
|
||||
return ReactiveSupport.toReactiveStore(new EntityDataStore<>(configuration));
|
||||
}
|
||||
|
||||
@Provides
|
||||
|
|
Loading…
Reference in New Issue