Add collapsed column to tasks

gtask_related_email
Alex Baker 5 years ago
parent 4965d104db
commit b5e29b0ad9

File diff suppressed because it is too large Load Diff

@ -58,7 +58,7 @@ import org.tasks.notifications.NotificationDao;
CaldavAccount.class,
GoogleTaskAccount.class
},
version = 68)
version = 69)
public abstract class Database extends RoomDatabase {
public static final String NAME = "database";

@ -183,6 +183,9 @@ public class Task implements Parcelable {
@ColumnInfo(name = "remoteId")
public String remoteId = NO_UUID;
@ColumnInfo(name = "collapsed")
public boolean collapsed;
// --- due and hide until date management
@Ignore private transient HashMap<String, Object> transitoryData = null;

@ -347,6 +347,15 @@ public class Migrations {
}
};
private static final Migration MIGRATION_68_69 =
new Migration(68, 69) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase database) {
database.execSQL(
"ALTER TABLE `tasks` ADD COLUMN `collapsed` INTEGER NOT NULL DEFAULT 0");
}
};
public static final Migration[] MIGRATIONS =
new Migration[] {
MIGRATION_35_36,
@ -372,7 +381,8 @@ public class Migrations {
MIGRATION_64_65,
MIGRATION_65_66,
MIGRATION_66_67,
MIGRATION_67_68
MIGRATION_67_68,
MIGRATION_68_69
};
private static Migration NOOP(int from, int to) {

Loading…
Cancel
Save