mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-26 17:06:43 +00:00
Support independent application migration versions.
This commit is contained in:
@@ -535,6 +535,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
||||
db.setVersion(DATABASE_VERSION);
|
||||
}
|
||||
|
||||
public static boolean databaseFileExists(@NonNull Context context) {
|
||||
return context.getDatabasePath(DATABASE_NAME).exists();
|
||||
}
|
||||
|
||||
private void executeStatements(SQLiteDatabase db, String[] statements) {
|
||||
for (String statement : statements)
|
||||
db.execSQL(statement);
|
||||
|
||||
Reference in New Issue
Block a user