Room database migration if only new table is added

前端 未结 6 1088
不思量自难忘°
不思量自难忘° 2020-12-07 09:07

Let\'t assume, I have a simple Room database:

@Database(entities = {User.class}, version = 1)
abstract class AppDatabase extends RoomDatabase {
    public ab         


        
6条回答
  •  遥遥无期
    2020-12-07 09:56

    Maybe in this case(if you've only created new table without changing others) you can do this not creating any migrations at all?

提交回复
热议问题