Correction to e12ecbdb - need to add that after the db upgrade, now it's using a new field

This commit is contained in:
Ciaran Gultnieks 2011-01-30 22:00:17 +00:00
parent 540b7d0522
commit 937a15bf16

View File

@ -232,6 +232,7 @@ public class DB {
db.execSQL(CREATE_TABLE_REPO); db.execSQL(CREATE_TABLE_REPO);
db.execSQL(CREATE_TABLE_APP); db.execSQL(CREATE_TABLE_APP);
db.execSQL(CREATE_TABLE_APK); db.execSQL(CREATE_TABLE_APK);
onUpgrade(db, 1, DB_UPGRADES.length + 1);
ContentValues values = new ContentValues(); ContentValues values = new ContentValues();
values.put("address", "http://f-droid.org/repo"); values.put("address", "http://f-droid.org/repo");
values.put("inuse", 1); values.put("inuse", 1);
@ -243,7 +244,6 @@ public class DB {
String pubkey = null; String pubkey = null;
values.put("pubkey", pubkey); values.put("pubkey", pubkey);
db.insert(TABLE_REPO, null, values); db.insert(TABLE_REPO, null, values);
onUpgrade(db, 1, DB_UPGRADES.length + 1);
} }
@Override @Override