private void addViewUrlPKConstraint() throws SQLException {
    dbAccessor.dropFKConstraint(VIEWINSTANCE_TABLE, FK_INSTANCE_URL_ID);
    dbAccessor.dropPKConstraint(VIEWURL_TABLE, STALE_POSTGRESS_VIEWURL_PKEY);
    dbAccessor.addPKConstraint(VIEWURL_TABLE, PK_VIEWURL, URL_ID_COLUMN);
    dbAccessor.addFKConstraint(VIEWINSTANCE_TABLE, FK_INSTANCE_URL_ID,
        SHORT_URL_COLUMN, VIEWURL_TABLE, URL_ID_COLUMN, false);
  }
Updates {@value #VIEWURL_TABLE} table.
Adds the {@value #PK_VIEWURL} constraint.
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java