Skip to content

Instantly share code, notes, and snippets.

@parkho79
Created June 3, 2021 00:39
SQLite 에서 ROOM 까지 (5) - SQLite 로 생성된 기존 DB 에 column 추가하기
public static final int DATABASE_VERSION = 2;
public static final String DATABASE_NAME = "student.db";
private static final String SQL_CREATE_ENTRIES =
"CREATE TABLE " + StudentEntry.TABLE_NAME + " (" +
StudentEntry._ID + " INTEGER PRIMARY KEY," +
StudentEntry.GRADE + " INTEGER," +
StudentEntry.NUMBER + " INTEGER," +
StudentEntry.NAME + " TEXT," +
StudentEntry.AGE + " INTEGER)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment