possible fix for database migration crash
This commit is contained in:
parent
1b9c79ad5f
commit
aa49d726f3
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ public class Cache {
|
|||
public String id;
|
||||
|
||||
@ColumnInfo(defaultValue = "1")
|
||||
public Boolean cache;
|
||||
public boolean cache;
|
||||
|
||||
public Cache() {
|
||||
this.id = UUID.randomUUID().toString();
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public abstract class JellyDatabase extends RoomDatabase {
|
|||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase database) {
|
||||
database.execSQL("CREATE TABLE cache (id TEXT NOT NULL PRIMARY KEY,"
|
||||
+ "cache INTEGER NOT NULL)");
|
||||
+ "cache INTEGER NOT NULL DEFAULT '1')");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue