CR: Leave old db update code as it was.
This may not have caused any trouble, but the principle behind the old behaviour is that at the point that that was required, the fdroid_repo table had that particular structure. There is a small chance that it _may_ have some unintended consequences when upgrading clients with very old database versions. Probably not, but may as well leave it as is.
This commit is contained in:
parent
34838fd0dc
commit
6957721479
@ -169,14 +169,12 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||
+ "maxage integer not null default 0, "
|
||||
+ "version integer not null default 0, "
|
||||
+ "lastetag text, "
|
||||
+ "lastUpdated string,"
|
||||
+ "username string, password string"
|
||||
+ ");";
|
||||
+ "lastUpdated string);";
|
||||
|
||||
db.execSQL(createTableDdl);
|
||||
|
||||
String nonIdFields = "address, name, description, inuse, priority, " +
|
||||
"pubkey, fingerprint, maxage, version, lastetag, lastUpdated, username, password";
|
||||
"pubkey, fingerprint, maxage, version, lastetag, lastUpdated";
|
||||
|
||||
String insertSql = "INSERT INTO " + TABLE_REPO +
|
||||
"(_id, " + nonIdFields + " ) " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user