|
|
|
@ -1605,9 +1605,8 @@ public abstract class DB extends RoomDatabase {
|
|
|
|
|
@Override
|
|
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
|
|
|
|
logMigration(startVersion, endVersion);
|
|
|
|
|
db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " +
|
|
|
|
|
TupleAccountView.query.replace(", category", ""));
|
|
|
|
|
db.execSQL("CREATE VIEW IF NOT EXISTS `identity_view` AS " + TupleIdentityView.query);
|
|
|
|
|
//db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + TupleAccountView.query);
|
|
|
|
|
//db.execSQL("CREATE VIEW IF NOT EXISTS `identity_view` AS " + TupleIdentityView.query);
|
|
|
|
|
db.execSQL("CREATE VIEW IF NOT EXISTS `folder_view` AS " + TupleFolderView.query);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -2146,9 +2145,8 @@ public abstract class DB extends RoomDatabase {
|
|
|
|
|
@Override
|
|
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
|
|
|
|
logMigration(startVersion, endVersion);
|
|
|
|
|
db.execSQL("DROP VIEW IF EXISTS `account_view`");
|
|
|
|
|
db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " +
|
|
|
|
|
TupleAccountView.query.replace(", category", ""));
|
|
|
|
|
//db.execSQL("DROP VIEW IF EXISTS `account_view`");
|
|
|
|
|
//db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + TupleAccountView.query);
|
|
|
|
|
}
|
|
|
|
|
}).addMigrations(new Migration(207, 208) {
|
|
|
|
|
@Override
|
|
|
|
|