/PhDatabaseHelper.java Secret
Created
June 3, 2021 00:39
SQLite 에서 ROOM 까지 (5) - SQLite 로 생성된 기존 DB 에 column 추가하기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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