|
|
@ -92,8 +92,9 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|
|
|
private static final int lokiV13 = 34;
|
|
|
|
private static final int lokiV13 = 34;
|
|
|
|
private static final int lokiV14_BACKUP_FILES = 35;
|
|
|
|
private static final int lokiV14_BACKUP_FILES = 35;
|
|
|
|
private static final int lokiV15 = 36;
|
|
|
|
private static final int lokiV15 = 36;
|
|
|
|
|
|
|
|
private static final int lokiV16 = 37;
|
|
|
|
|
|
|
|
|
|
|
|
private static final int DATABASE_VERSION = lokiV15;
|
|
|
|
private static final int DATABASE_VERSION = lokiV16;
|
|
|
|
private static final String DATABASE_NAME = "signal.db";
|
|
|
|
private static final String DATABASE_NAME = "signal.db";
|
|
|
|
|
|
|
|
|
|
|
|
private final Context context;
|
|
|
|
private final Context context;
|
|
|
@ -630,10 +631,13 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (oldVersion < lokiV15) {
|
|
|
|
if (oldVersion < lokiV15) {
|
|
|
|
db.execSQL(LokiAPIDatabase.getCreateOpenGroupProfilePictureTableCommand());
|
|
|
|
|
|
|
|
db.execSQL(SharedSenderKeysDatabase.getCreateOldClosedGroupRatchetTableCommand());
|
|
|
|
db.execSQL(SharedSenderKeysDatabase.getCreateOldClosedGroupRatchetTableCommand());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (oldVersion < lokiV16) {
|
|
|
|
|
|
|
|
db.execSQL(LokiAPIDatabase.getCreateOpenGroupProfilePictureTableCommand());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
db.endTransaction();
|
|
|
|
db.endTransaction();
|
|
|
|