[fix]
[数据库版本不兼容 直接重建数据库]
This commit is contained in:
yangyakun
2024-11-14 11:24:08 +08:00
parent e22821e7c8
commit 8016638ac6

View File

@@ -90,6 +90,7 @@ abstract class MyDataBase : RoomDatabase() {
)
.addMigrations(Migration1_2(1,2))
.addMigrations(Migration2_3(2,3))
.fallbackToDestructiveMigration()
.build()
}
val ROOT_PATH = Environment.getExternalStorageDirectory().absolutePath + File.separator + "Mogo" + File.separator + "APP_cache" + File.separator //程序外部存储跟目录