I have a code which called when new database version will be installed on device.
if (oldVersion < 8) {
try {
sqLiteDatabase.execSQL("ALTER TABLE `" + Category.controllerName + "` ADD COLUMN " + Category.TYPE + " TEXT");
} catch (SQLiteException e) {
}
}
I suppose this will be created a new Column with name type
.
How i can fill this column with default value -1
for example?
And also... how i need support database update correctly? Any links will be appericated.