デバッグのためにデータベースの破壊を許可

This commit is contained in:
r-ca committed 2024-01-14 15:09:44 +09:00
1 parent 656d3a5964
commit 52894cf19c
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();
} }
} }