Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
- if (oldVersion = 1 && newVersion > 1) {
- String alterSQL = "ALTER TABLE " + TABLE_NAME + " ADD COLUMN " + NEWCOLUMN + " INTEGER DEFAULT 100";
- db.execSQL(alterSQL);
- }
- }
Add Comment
Please, Sign In to add comment