1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 17:27:24 +01:00

Merge pull request #72 from Freeyourgadget/danielegobbetti-db-fix

Fix crash on startup
This commit is contained in:
Andreas Shimokawa 2015-06-12 21:29:01 +02:00
commit 17c514a860

View File

@ -37,7 +37,7 @@ public class ActivityDatabaseHandler extends SQLiteOpenHelper {
+ KEY_INTENSITY + " SMALLINT,"
+ KEY_STEPS + " TINYINT,"
+ KEY_TYPE + " TINYINT,"
+ " PRIMARY_KEY (" + KEY_TIMESTAMP + "," + KEY_PROVIDER + ") ON CONFLICT REPLACE)" + getWithoutRowId();
+ " PRIMARY KEY (" + KEY_TIMESTAMP + "," + KEY_PROVIDER + ") ON CONFLICT REPLACE)" + getWithoutRowId();
db.execSQL(CREATE_GBACTIVITYSAMPLES_TABLE);
}
@ -127,4 +127,4 @@ public class ActivityDatabaseHandler extends SQLiteOpenHelper {
return GBActivitySampleList;
}
}
}