mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
デバッグのためにデータベースの破壊を許可
This commit is contained in:
1 file changed
+2
@@ -20,6 +20,8 @@ public class LacertaDatabaseModule {
|
|||||||
LacertaDatabase.class,
|
LacertaDatabase.class,
|
||||||
"lacerta.db")
|
"lacerta.db")
|
||||||
.allowMainThreadQueries() // Debug
|
.allowMainThreadQueries() // Debug
|
||||||
|
.fallbackToDestructiveMigration() // Debug Only: マイグレーションがない場合などにデータベースを再生成する
|
||||||
|
.fallbackToDestructiveMigrationOnDowngrade() // Debug Only: マイグレーションがない場合などにデータベースを再生成する
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user