mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 02:55:50 +01:00
Use MEDIUMINT for steps per day (no effect, not used, and ignored by sqlite)
This commit is contained in:
parent
4b4c6d1a6b
commit
da5df5621e
@ -19,7 +19,7 @@ public class ActivityDBUpdate_6 implements DBUpdateScript {
|
|||||||
String CREATE_STEPS_PER_DAY_TABLE = "CREATE TABLE IF NOT EXISTS " + TABLE_STEPS_PER_DAY + " ("
|
String CREATE_STEPS_PER_DAY_TABLE = "CREATE TABLE IF NOT EXISTS " + TABLE_STEPS_PER_DAY + " ("
|
||||||
+ KEY_TIMESTAMP + " INT,"
|
+ KEY_TIMESTAMP + " INT,"
|
||||||
+ KEY_PROVIDER + " TINYINT,"
|
+ KEY_PROVIDER + " TINYINT,"
|
||||||
+ KEY_STEPS + " TINYINT,"
|
+ KEY_STEPS + " MEDIUMINT,"
|
||||||
+ " 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_STEPS_PER_DAY_TABLE);
|
db.execSQL(CREATE_STEPS_PER_DAY_TABLE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user