Change the onUpgrade of SQLiteOpenHelper like below
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion , int newVesion) {
Log.w(TAG, "Upgrading database from version " + oldVersion + "to"
+ newVesion + ", which will destroy all old data");
db.execSQL("DROP TABLE IF EXIST CustomerDetails ");
onCreate(db);
}
May be you change the version from 1 to 3 then as per your code the onUpgrade method only drop the table, It will not create the newly updated table so i added
onCreate(db);
in onUpgrade after Drop the table