Skip to content

Commit

Permalink
migrate 5.5 users to the visual editor
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Jun 7, 2016
1 parent 5f661ff commit 9c67b1d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class WordPressDB {
public static final String COLUMN_NAME_VIDEO_PRESS_SHORTCODE = "videoPressShortcode";
public static final String COLUMN_NAME_UPLOAD_STATE = "uploadState";

private static final int DATABASE_VERSION = 46;
private static final int DATABASE_VERSION = 47;

private static final String CREATE_TABLE_BLOGS = "create table if not exists accounts (id integer primary key autoincrement, "
+ "url text, blogName text, username text, password text, imagePlacement text, centerThumbnail boolean, fullSizeImage boolean, maxImageWidth text, maxImageWidthId integer);";
Expand Down Expand Up @@ -419,6 +419,10 @@ public WordPressDB(Context ctx) {
case 45:
db.execSQL(ADD_BLOGS_CAPABILITIES);
currentVersion++;
case 46:
AppPrefs.setVisualEditorAvailable(true);
AppPrefs.setVisualEditorEnabled(true);
currentVersion++;
}
db.setVersion(DATABASE_VERSION);
}
Expand Down

0 comments on commit 9c67b1d

Please sign in to comment.