private void updateUpgradeTable() throws SQLException {
    dbAccessor.clearTableColumn(CLUSTERS_TABLE, UPGRADE_ID_COLUMN, null);

    dbAccessor.clearTable(UPGRADE_ITEM_TABLE);
    dbAccessor.clearTable(UPGRADE_GROUP_TABLE);
    dbAccessor.clearTable(UPGRADE_TABLE);
    dbAccessor.dropFKConstraint(UPGRADE_TABLE, FK_UPGRADE_FROM_REPO_ID);
    dbAccessor.dropFKConstraint(UPGRADE_TABLE, FK_UPGRADE_TO_REPO_ID);
    dbAccessor.dropColumn(UPGRADE_TABLE, FROM_REPO_VERSION_ID_COLUMN);
    dbAccessor.dropColumn(UPGRADE_TABLE, TO_REPO_VERSION_ID_COLUMN);

    dbAccessor.addColumn(UPGRADE_TABLE,
        new DBAccessor.DBColumnInfo(REPO_VERSION_ID_COLUMN, Long.class, null, null, false));

    dbAccessor.addColumn(UPGRADE_TABLE,
        new DBAccessor.DBColumnInfo(ORCHESTRATION_COLUMN, String.class, 255, STANDARD, false));

    dbAccessor.addColumn(UPGRADE_TABLE,
        new DBAccessor.DBColumnInfo(ALLOW_REVERT_COLUMN, Short.class, null, 0, false));

    dbAccessor.addFKConstraint(UPGRADE_TABLE, FK_UPGRADE_REPO_VERSION_ID, REPO_VERSION_ID_COLUMN, REPO_VERSION_TABLE, REPO_VERSION_ID_COLUMN, false);
  }
Updates {@value #UPGRADE_TABLE} table.
clear {@value #UPGRADE_TABLE} table
Removes {@value #FROM_REPO_VERSION_ID_COLUMN} column.
Removes {@value #TO_REPO_VERSION_ID_COLUMN} column.
Adds the {@value #ORCHESTRATION_COLUMN} column.
Adds the {@value #REPO_VERSION_ID_COLUMN} column.
Removes {@value #FK_UPGRADE_FROM_REPO_ID} foreign key.
Removes {@value #FK_UPGRADE_TO_REPO_ID} foreign key.
adds {@value #FK_REPO_VERSION_ID} foreign key.

@throws java.sql.SQLException
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java