Merge pull request #72 from Freeyourgadget/danielegobbetti-db-fix
Fix crash on startup
This commit is contained in:
commit
17c514a860
|
@ -37,7 +37,7 @@ public class ActivityDatabaseHandler extends SQLiteOpenHelper {
|
||||||
+ KEY_INTENSITY + " SMALLINT,"
|
+ KEY_INTENSITY + " SMALLINT,"
|
||||||
+ KEY_STEPS + " TINYINT,"
|
+ KEY_STEPS + " TINYINT,"
|
||||||
+ KEY_TYPE + " 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);
|
db.execSQL(CREATE_GBACTIVITYSAMPLES_TABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,4 +127,4 @@ public class ActivityDatabaseHandler extends SQLiteOpenHelper {
|
||||||
|
|
||||||
return GBActivitySampleList;
|
return GBActivitySampleList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue