From 52894cf19c68d410425ff50d5538c9ece121f493 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 15:09:44 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E3=81=AE?= =?UTF-8?q?=E3=81=9F=E3=82=81=E3=81=AB=E3=83=87=E3=83=BC=E3=82=BF=E3=83=99?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=81=AE=E7=A0=B4=E5=A3=8A=E3=82=92=E8=A8=B1?= =?UTF-8?q?=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/database/LacertaDatabaseModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/main/java/one/nem/lacerta/source/database/LacertaDatabaseModule.java b/source/src/main/java/one/nem/lacerta/source/database/LacertaDatabaseModule.java index f3e43f95..87da3dd5 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/LacertaDatabaseModule.java +++ b/source/src/main/java/one/nem/lacerta/source/database/LacertaDatabaseModule.java @@ -20,6 +20,8 @@ public class LacertaDatabaseModule { LacertaDatabase.class, "lacerta.db") .allowMainThreadQueries() // Debug + .fallbackToDestructiveMigration() // Debug Only: マイグレーションがない場合などにデータベースを再生成する + .fallbackToDestructiveMigrationOnDowngrade() // Debug Only: マイグレーションがない場合などにデータベースを再生成する .build(); } }