1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 09:35:50 +01:00

Fix missing column in the creation script (upgrades were fine, but new installation weren't).

Reindent changelog file.
This commit is contained in:
danielegobbetti 2016-03-06 17:28:21 +01:00
parent 97faf61c5a
commit 459f6baf08
2 changed files with 14 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import android.database.sqlite.SQLiteDatabase;
import nodomain.freeyourgadget.gadgetbridge.database.DBHelper; import nodomain.freeyourgadget.gadgetbridge.database.DBHelper;
import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_CUSTOM_SHORT;
import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_INTENSITY; import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_INTENSITY;
import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_PROVIDER; import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_PROVIDER;
import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_STEPS; import static nodomain.freeyourgadget.gadgetbridge.database.DBConstants.KEY_STEPS;
@ -19,6 +20,7 @@ public class ActivityDBCreationScript {
+ KEY_INTENSITY + " SMALLINT," + KEY_INTENSITY + " SMALLINT,"
+ KEY_STEPS + " TINYINT," + KEY_STEPS + " TINYINT,"
+ KEY_TYPE + " TINYINT," + KEY_TYPE + " TINYINT,"
+ KEY_CUSTOM_SHORT + " INT,"
+ " PRIMARY KEY (" + KEY_TIMESTAMP + "," + KEY_PROVIDER + ") ON CONFLICT REPLACE)" + DBHelper.getWithoutRowId(); + " PRIMARY KEY (" + KEY_TIMESTAMP + "," + KEY_PROVIDER + ") ON CONFLICT REPLACE)" + DBHelper.getWithoutRowId();
db.execSQL(CREATE_GBACTIVITYSAMPLES_TABLE); db.execSQL(CREATE_GBACTIVITYSAMPLES_TABLE);
} }

View File

@ -1,7 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<changelog> <changelog>
<release version="0.8.1" versioncode="42" > <release version="next">
<change>Pebble: Install and start freshly-installed apps on the watch also in FW 3.x (now same behaviour as 2.x)</change> <change>Fix database creation script. Thanks @feclare</change>
</release>
<release
version="0.8.1"
versioncode="42">
<change>Pebble: Install and start freshly-installed apps on the watch also in FW 3.x (now
same behaviour as 2.x)
</change>
<change>Pebble: Fix crash while receiving Health data</change> <change>Pebble: Fix crash while receiving Health data</change>
<change>Mi Band 1S: Support for synchronizing activity data</change> <change>Mi Band 1S: Support for synchronizing activity data</change>
<change>Mi Band 1S: Support for reading the heart rate via the "Debug Screen"</change> <change>Mi Band 1S: Support for reading the heart rate via the "Debug Screen"</change>