修复数据库升级的字段问题
This commit is contained in:
@ -77,7 +77,7 @@ public abstract class AppDatabase extends RoomDatabase {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase database) {
|
||||
database.execSQL("Alter TABLE AnswerEntity add articleTitle TEXT");
|
||||
database.execSQL("Alter TABLE AnswerEntity add type TEXT");
|
||||
database.execSQL("Alter TABLE AnswerEntity add type TEXT NOT NULL");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user