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