Drop all snapshots for Skia change
Bug: 5388379
Change-Id: Ie41ea6d55f987033c052c87a5a6171a678e09d4f
diff --git a/src/com/android/browser/provider/SnapshotProvider.java b/src/com/android/browser/provider/SnapshotProvider.java
index c0aad23..437a867 100644
--- a/src/com/android/browser/provider/SnapshotProvider.java
+++ b/src/com/android/browser/provider/SnapshotProvider.java
@@ -72,7 +72,7 @@
final static class SnapshotDatabaseHelper extends SQLiteOpenHelper {
static final String DATABASE_NAME = "snapshots.db";
- static final int DATABASE_VERSION = 1;
+ static final int DATABASE_VERSION = 2;
public SnapshotDatabaseHelper(Context context) {
super(context, getFullDatabaseName(context), null, DATABASE_VERSION);
@@ -99,7 +99,10 @@
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
- // Not needed yet
+ if (oldVersion < 2) {
+ db.execSQL("DROP TABLE " + TABLE_SNAPSHOTS);
+ onCreate(db);
+ }
}
}