## What changes were proposed in this pull request?

**serviceId** has been added to the unique constraint **(cluster_id, type_name, 
version_tag)** on the **clusterconfig** table to support multiple service 
instances.

In consequence, **serviceId** has also been added to 
**confgroupclusterconfigmapping -> clusterconfig** foreign key. The former PK 
of the **confgroupclusterconfigmapping** table **(version_tag, config_type, 
cluster_id)** now includes **serviceId** too and is turned to a unique 
constraint. (Since **serviceId** is optional, it cannot take part in a primary 
key.) A surrogate PK has been created instead.

## How was this patch tested?

Tested installation manually. Unit test run pending.

[ Full content available at: https://github.com/apache/ambari/pull/2376 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to