I added the below code for adding a column to the SithluBody table when migration.
static final Migration MIGRATION_3_4 = new Migration(3, 4) {
@Override
public void migrate(SupportSQLiteDatabase database) {
database.execSQL("ALTER TABLE SithaluBody ADD COLUMN has_thumb INTEGER NOT NULL
DEFAULT 0");
database.execSQL("ALTER TABLE SithaluBody ADD COLUMN reacts TEXT");
}
};
but I got the error ==>
Fatal Exception: android.database.sqlite.SQLiteException duplicate column name: has_thumb (code 1 SQLITE_ERROR). How can I fix it? please help me.