|
|
@ -67,7 +67,7 @@ import javax.mail.internet.InternetAddress;
|
|
|
|
// https://developer.android.com/topic/libraries/architecture/room.html
|
|
|
|
// https://developer.android.com/topic/libraries/architecture/room.html
|
|
|
|
|
|
|
|
|
|
|
|
@Database(
|
|
|
|
@Database(
|
|
|
|
version = 258,
|
|
|
|
version = 259,
|
|
|
|
entities = {
|
|
|
|
entities = {
|
|
|
|
EntityIdentity.class,
|
|
|
|
EntityIdentity.class,
|
|
|
|
EntityAccount.class,
|
|
|
|
EntityAccount.class,
|
|
|
@ -2609,11 +2609,12 @@ public abstract class DB extends RoomDatabase {
|
|
|
|
logMigration(startVersion, endVersion);
|
|
|
|
logMigration(startVersion, endVersion);
|
|
|
|
defaultSearches(db, context);
|
|
|
|
defaultSearches(db, context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).addMigrations(new Migration(258, 257) {
|
|
|
|
}).addMigrations(new Migration(258, 259) {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
|
|
|
logMigration(startVersion, endVersion);
|
|
|
|
logMigration(startVersion, endVersion);
|
|
|
|
defaultSearches(db, context);
|
|
|
|
db.execSQL("UPDATE account SET keep_alive_noop = 0" +
|
|
|
|
|
|
|
|
" WHERE host = 'outlook.office365.com' AND pop = " + EntityAccount.TYPE_IMAP);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).addMigrations(new Migration(998, 999) {
|
|
|
|
}).addMigrations(new Migration(998, 999) {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|