Hotfix for database upgrade, version 2.3.1

This commit is contained in:
Dominik Schürmann 2014-02-05 19:55:32 +01:00
parent b1530c4758
commit cf499462c5
2 changed files with 5 additions and 2 deletions

View File

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.sufficientlysecure.keychain"
android:installLocation="auto"
android:versionCode="23000"
android:versionName="2.3">
android:versionCode="23100"
android:versionName="2.3.1">
<!--
General remarks

View File

@ -123,14 +123,17 @@ public class KeychainDatabase extends SQLiteOpenHelper {
break;
case 4:
db.execSQL(CREATE_API_APPS);
break;
case 5:
// new column: package_signature
db.execSQL("DROP TABLE IF EXISTS " + Tables.API_APPS);
db.execSQL(CREATE_API_APPS);
break;
case 6:
// new column: fingerprint
db.execSQL("ALTER TABLE " + Tables.KEYS + " ADD COLUMN " + KeysColumns.FINGERPRINT
+ " BLOB;");
break;
default:
break;