1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-12-04 13:18:16 -05:00

Database is now working as expected.

This commit is contained in:
Bradlee Speice 2014-04-15 22:01:04 -04:00
parent 932544b6aa
commit 31935908b2

View File

@ -27,7 +27,7 @@ public class LocationDatabaseHelper extends SQLiteOpenHelper {
private static final String KEY_RIDDLE = "RIDDLE";
private static final String KEY_LOCATION_LONG = "LOCATION_LONG";
private static final String KEY_LOCATION_LAT = "LOCATION_LAT";
private static final String KEY_KEY = "KEY";
private static final String KEY_KEY = "KEYs";
private LocationDatabaseHelper(Context ctx) {
super(ctx, DATABASE_NAME, null, DATABASE_VERSION);
@ -46,7 +46,7 @@ public class LocationDatabaseHelper extends SQLiteOpenHelper {
KEY_NAME + " VARCHAR(255)," +
KEY_RIDDLE + " VARCHAR(1024)," +
KEY_LOCATION_LONG + " REAL," +
KEY_LOCATION_LAT + " REAL" +
KEY_LOCATION_LAT + " REAL," +
KEY_KEY + " VARCHAR(255)" +
");";
@Override
@ -56,7 +56,7 @@ public class LocationDatabaseHelper extends SQLiteOpenHelper {
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
return;
db.execSQL("DROP TABLE " + TABLE_NAME + ";");
}
public RestLocation locationFromCursor(Cursor c) {