Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
More compatible database upgrade (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Feb 25, 2014
1 parent 2e51d34 commit 40e07f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,7 @@ private SQLiteDatabase getDb() {
db.execSQL("ALTER TABLE setting ADD COLUMN type TEXT");
db.execSQL("DROP INDEX idx_setting");
db.execSQL("CREATE UNIQUE INDEX idx_setting ON setting(uid, type, name)");
db.execSQL("UPDATE setting SET type=''");
db.setVersion(10);
db.setTransactionSuccessful();
} finally {
Expand Down

0 comments on commit 40e07f5

Please sign in to comment.