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
1 changed files with 2 additions and 2 deletions

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;
}
}
}