From 937a15bf16950a9206da4711b0dd91552bc21e09 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 30 Jan 2011 22:00:17 +0000 Subject: [PATCH] Correction to e12ecbdb - need to add that after the db upgrade, now it's using a new field --- src/org/fdroid/fdroid/DB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/fdroid/fdroid/DB.java b/src/org/fdroid/fdroid/DB.java index 49f695197..32574b847 100644 --- a/src/org/fdroid/fdroid/DB.java +++ b/src/org/fdroid/fdroid/DB.java @@ -232,6 +232,7 @@ public class DB { db.execSQL(CREATE_TABLE_REPO); db.execSQL(CREATE_TABLE_APP); db.execSQL(CREATE_TABLE_APK); + onUpgrade(db, 1, DB_UPGRADES.length + 1); ContentValues values = new ContentValues(); values.put("address", "http://f-droid.org/repo"); values.put("inuse", 1); @@ -243,7 +244,6 @@ public class DB { String pubkey = null; values.put("pubkey", pubkey); db.insert(TABLE_REPO, null, values); - onUpgrade(db, 1, DB_UPGRADES.length + 1); } @Override