Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Commit

Permalink
Add show/hide search engines
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Jan 27, 2016
1 parent efff8fb commit 02f32b4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Created by Rikka on 2016/1/24.
*/
public class DatabaseHelper extends SQLiteOpenHelper{
public static final int DATABASE_VERSION = 1;
public static final int DATABASE_VERSION = 2;
public static final String DATABASE_NAME = "search_engines.db";

private static DatabaseHelper instance;
Expand All @@ -33,6 +33,8 @@ public void onCreate(SQLiteDatabase db) {

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

if (newVersion == 2) {
db.execSQL("ALTER TABLE " + CustomEngineTable.TABLE_NAME + " ADD " + CustomEngineTable.COLUMN_ENABLED + " integer NOT NULL DEFAULT(1)");
}
}
}
}

0 comments on commit 02f32b4

Please sign in to comment.