[fea]
[数据库降级处理]
This commit is contained in:
yangyakun
2024-12-09 17:23:52 +08:00
parent 8f53fb3e11
commit 49f0d96c07

View File

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