Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit c64e3c4

Browse files
committed
Added migration script to store jetpack_user_email to SiteModel
1 parent c3d6803 commit c64e3c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fluxc/src/main/java/org/wordpress/android/fluxc/persistence/WellSqlConfig.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public WellSqlConfig(Context context, @AddOn String... addOns) {
4444

4545
@Override
4646
public int getDbVersion() {
47-
return 88;
47+
return 89;
4848
}
4949

5050
@Override
@@ -618,6 +618,10 @@ public void onUpgrade(SQLiteDatabase db, WellTableManager helper, int oldVersion
618618
AppLog.d(T.DB, "Migrating to version " + (oldVersion + 1));
619619
migrateAddOn(ADDON_WOOCOMMERCE, db, oldVersion);
620620
oldVersion++;
621+
case 88:
622+
AppLog.d(T.DB, "Migrating to version " + (oldVersion + 1));
623+
db.execSQL("alter table SiteModel add JETPACK_USER_EMAIL text;");
624+
oldVersion++;
621625
}
622626
db.setTransactionSuccessful();
623627
db.endTransaction();

0 commit comments

Comments
 (0)