|
|
|
@ -56,9 +56,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|
|
|
|
private static final int lokiV22 = 43;
|
|
|
|
|
private static final int lokiV23 = 44;
|
|
|
|
|
private static final int lokiV24 = 45;
|
|
|
|
|
private static final int lokiV25 = 46;
|
|
|
|
|
|
|
|
|
|
// Loki - onUpgrade(...) must be updated to use Loki version numbers if Signal makes any database changes
|
|
|
|
|
private static final int DATABASE_VERSION = lokiV24;
|
|
|
|
|
private static final int DATABASE_VERSION = lokiV25;
|
|
|
|
|
private static final String DATABASE_NAME = "signal.db";
|
|
|
|
|
|
|
|
|
|
private final Context context;
|
|
|
|
@ -291,6 +292,12 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|
|
|
|
db.execSQL(LokiAPIDatabase.getCreateSwarmTableCommand());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (oldVersion < lokiV25) {
|
|
|
|
|
String jobTable = SessionJobDatabase.sessionJobTable;
|
|
|
|
|
db.execSQL("DROP TABLE " + jobTable);
|
|
|
|
|
db.execSQL(SessionJobDatabase.getCreateSessionJobTableCommand());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
|
} finally {
|
|
|
|
|
db.endTransaction();
|
|
|
|
|