Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
Description
When upgrading Ambari from 2.2.2 to 2.5 it was discovered that if a unique constraint is modified between Ambari versions, then we do not update the unique constraint.
For example:
Ambari 2.2.2
https://github.com/apache/ambari/blob/branch-2.2.2/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql#L661
ALTER TABLE users ADD CONSTRAINT UNQ_users_0 UNIQUE (user_name, ldap_user);
Ambari-2.4.0
https://github.com/apache/ambari/blob/branch-2.4/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql#L288
CONSTRAINT UNQ_users_0 UNIQUE (user_name, user_type))
Whenever after upgrading from Ambari 2.2.2 to Ambari 2.5.0, the unique constraint is not updated.
Attachments
Attachments
Issue Links
- links to