[6.7.3]
[fix] [数据库版本不兼容 直接重建数据库]
This commit is contained in:
@@ -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 //程序外部存储跟目录
|
||||
|
||||
Reference in New Issue
Block a user