Source:
public synchronized void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion, @NonNull TableDefaultsCustomizer customizer) { super.onUpgrade(db, oldVersion, newVersion, customizer); if (oldVersion <= 11) { final String sql = "CREATE TABLE " + getTableName() + " (" + COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + COLUMN_METHOD + " TEXT" + ");"; Logger.debug(this, sql); db.execSQL(sql); customizer.insertPaymentMethodDefaults(this); } if (oldVersion <= 14) { onUpgradeToAddSyncInformation(db, oldVersion, newVersion); } if (oldVersion <= 15) { final String addCustomOrderColumn = String.format("ALTER TABLE %s ADD COLUMN %s INTEGER DEFAULT 0", getTableName(), AbstractColumnTable.COLUMN_CUSTOM_ORDER_ID); Logger.debug(this, addCustomOrderColumn); db.execSQL(addCustomOrderColumn); } if (oldVersion <= 16) { if (!hasCustomOrderIdColumn(db)) { final String addCustomOrderColumn = String.format("ALTER TABLE %s ADD COLUMN %s INTEGER DEFAULT 0", getTableName(), AbstractColumnTable.COLUMN_CUSTOM_ORDER_ID); final String updateDefaultCustomOrder = String.format("UPDATE %s SET %s = ROWID", getTableName(), AbstractColumnTable.COLUMN_CUSTOM_ORDER_ID); Logger.debug(this, addCustomOrderColumn); Logger.debug(this, updateDefaultCustomOrder); db.execSQL(addCustomOrderColumn); db.execSQL(updateDefaultCustomOrder); } } if (oldVersion <= 18) { onUpgradeToAddUUID(db, oldVersion); } if (oldVersion <= 20) { final String alterPaymentMethods = "ALTER TABLE " + getTableName() + " ADD COLUMN " + COLUMN_REIMBURSABLE + " BOOLEAN DEFAULT 0"; Logger.debug(this, alterPaymentMethods); db.execSQL(alterPaymentMethods); } }

Target:
public synchronized void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion, @NonNull TableDefaultsCustomizer customizer) { super.onUpgrade(db, oldVersion, newVersion, customizer); if (oldVersion <= 11) { final String sql = "CREATE TABLE " + getTableName() + " (" + COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + COLUMN_METHOD + " TEXT" + ");"; Logger.debug(this, sql); db.execSQL(sql); customizer.insertPaymentMethodDefaults(this); } if (oldVersion <= 14) { onUpgradeToAddSyncInformation(db, oldVersion, newVersion); } if (oldVersion <= 15) { final String addCustomOrderColumn = String.format("ALTER TABLE %s ADD COLUMN %s INTEGER DEFAULT 0", getTableName(), AbstractColumnTable.COLUMN_CUSTOM_ORDER_ID); Logger.debug(this, addCustomOrderColumn); db.execSQL(addCustomOrderColumn); } if (oldVersion <= 16) { if (!hasCustomOrderIdColumn(db)) { final String addCustomOrderColumn = String.format("ALTER TABLE %s ADD COLUMN %s INTEGER DEFAULT 0", getTableName(), AbstractColumnTable.COLUMN_CUSTOM_ORDER_ID); final String updateDefaultCustomOrder = String.format("UPDATE %s SET %s = ROWID", getTableName(), AbstractColumnTable.COLUMN_CUSTOM_ORDER_ID); Logger.debug(this, addCustomOrderColumn); Logger.debug(this, updateDefaultCustomOrder); db.execSQL(addCustomOrderColumn); db.execSQL(updateDefaultCustomOrder); } } if (oldVersion <= 18) { onUpgradeToAddUUID(db, oldVersion); } if (oldVersion <= 21) { final String alterPaymentMethods = "ALTER TABLE " + getTableName() + " ADD COLUMN " + COLUMN_REIMBURSABLE + " BOOLEAN DEFAULT 0"; Logger.debug(this, alterPaymentMethods); db.execSQL(alterPaymentMethods); } }