private void dropBrokenFK() throws SQLException {
    dbAccessor.dropFKConstraint(UPGRADE_TABLE, FK_UPGRADE_FROM_REPO_VERSION_ID);
    dbAccessor.dropFKConstraint(UPGRADE_TABLE, FK_UPGRADE_TO_REPO_VERSION_ID);
    dbAccessor.dropFKConstraint(SERVICE_COMPONENT_DESIRED_STATE_TABLE, FK_SERVICECOMPONENTDESIREDSTATE_DESIRED_STACK_ID);
    dbAccessor.dropFKConstraint(SERVICE_DESIRED_STATE_TABLE, FK_SERVICEDESIREDSTATE_DESIRED_STACK_ID);
    dbAccessor.dropFKConstraint(HOST_COMPONENT_DESIRED_STATE_TABLE, FK_HOSTCOMPONENTDESIREDSTATE_DESIRED_STACK_ID);
    dbAccessor.dropFKConstraint(HOST_COMPONENT_STATE_TABLE, FK_HOSTCOMPONENTSTATE_CURRENT_STACK_ID);
  }
Drop broken FK
{@value #FK_SERVICECOMPONENTDESIREDSTATE_DESIRED_STACK_ID}
{@value #FK_SERVICEDESIREDSTATE_DESIRED_STACK_ID}
{@value #FK_HOSTCOMPONENTDESIREDSTATE_DESIRED_STACK_ID}
{@value #FK_HOSTCOMPONENTSTATE_CURRENT_STACK_ID}
{@value #FK_UPGRADE_FROM_REPO_VERSION_ID}
{@value #FK_UPGRADE_TO_REPO_VERSION_ID}
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java