GitHub user mitchell852 opened a pull request:
https://github.com/apache/incubator-trafficcontrol/pull/427
[TC-222] - adds unique constraint to a number of tables
to:
parameter (name, config_file, value)
job_status (name)
job_agent (name)
role (name)
status (name)
type (name)
also, instructs seeds.sql to skip if a constraint conflict exists, thus
preventing duplicates.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mitchell852/incubator-trafficcontrol seeds
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafficcontrol/pull/427.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #427
----
commit 382a7d4e183edd89976a95c54d89ec341a14c14a
Author: Jeremy Mitchell <[email protected]>
Date: 2017-04-04T20:21:00Z
adds unique constraints to job_status, role, status, type, job_agent and
parameter table
commit eb06eb4304c8bb2aaf0af456d6cf5533df5e26a2
Author: Jeremy Mitchell <[email protected]>
Date: 2017-04-04T20:22:02Z
inserts are ignored if unique constraints are violated resulting in no
errors / dups
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---