Allow account ordering

This commit is contained in:
M66B
2019-04-25 08:18:01 +02:00
parent 3764ad2818
commit 2a4ff4b49d
9 changed files with 1850 additions and 38 deletions

View File

@@ -51,7 +51,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 72,
version = 73,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -752,6 +752,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `message` ADD COLUMN `list_post` TEXT");
}
})
.addMigrations(new Migration(72, 73) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `account` ADD COLUMN `order` INTEGER");
}
})
.build();
}