mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-03 10:15:38 +00:00
Trigger DB schema change on application DB update Activity
This commit is contained in:
parent
5496f5baac
commit
7b353a94d8
@ -140,6 +140,8 @@ public class DatabaseFactory {
|
|||||||
public void onApplicationLevelUpgrade(@NonNull Context context, @NonNull MasterSecret masterSecret,
|
public void onApplicationLevelUpgrade(@NonNull Context context, @NonNull MasterSecret masterSecret,
|
||||||
int fromVersion, DatabaseUpgradeActivity.DatabaseUpgradeListener listener)
|
int fromVersion, DatabaseUpgradeActivity.DatabaseUpgradeListener listener)
|
||||||
{
|
{
|
||||||
|
databaseHelper.getWritableDatabase();
|
||||||
|
|
||||||
ClassicOpenHelper legacyOpenHelper = null;
|
ClassicOpenHelper legacyOpenHelper = null;
|
||||||
|
|
||||||
if (fromVersion < DatabaseUpgradeActivity.ASYMMETRIC_MASTER_SECRET_FIX_VERSION) {
|
if (fromVersion < DatabaseUpgradeActivity.ASYMMETRIC_MASTER_SECRET_FIX_VERSION) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user