mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-02 07:23:38 +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