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

View File

@ -1,9 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog>
<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>Mi Band 1S: Support for synchronizing activity data</change>
<change>Mi Band 1S: Support for reading the heart rate via the "Debug Screen"</change>
<release version="next">
<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>Mi Band 1S: Support for synchronizing activity data</change>
<change>Mi Band 1S: Support for reading the heart rate via the "Debug Screen"</change>
</release>
</changelog>