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" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.sufficientlysecure.keychain" package="org.sufficientlysecure.keychain"
android:installLocation="auto" android:installLocation="auto"
android:versionCode="23000" android:versionCode="23100"
android:versionName="2.3"> android:versionName="2.3.1">
<!-- <!--
General remarks General remarks

View File

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