private static final String DATABASE_NAME = "assignmentsdb";
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_TABLE = "assignmentsTable";
public static final String KEY_MODULE = "moduleCode";
public static final String KEY_NAME = "assignmentName";
public static final String KEY_PRO = "marksProportion";
public static final String KEY_DUE = "whenDue";
public static final String KEY_PROG = "Progress";
public void onCreate(SQLiteDatabase db) {
db.execSQL("CREATE TABLE " + DATABASE_TABLE + " (" +
KEY_MODULE + " TEXT, " +
KEY_NAME + " TEXT, " +
KEY_PROG + " INTEGER, " +
KEY_DUE + " TEXT, " +
KEY_PRO + " INTEGER);"
);
}
When I try to insert into this table I get an error telling me the KEY_PROG and KEY_DUE columns do not exist. When I comment them out, insert and return the results the rest work correctly. I cannot figure out why the 2 columns are not being created? Thanks.