You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Jeremy Mitchell (JIRA)" <ji...@apache.org> on 2017/08/24 21:15:00 UTC

[jira] [Created] (TC-552) Global parameters may be duplicated when seeds.sql is run

Jeremy Mitchell created TC-552:
----------------------------------

             Summary: Global parameters may be duplicated when seeds.sql is run
                 Key: TC-552
                 URL: https://issues.apache.org/jira/browse/TC-552
             Project: Traffic Control
          Issue Type: Bug
          Components: Traffic Ops
            Reporter: Jeremy Mitchell
            Priority: Minor


If seeds.sql is run multiple times (i.e. on first install and subsequent upgrades), the following global parameters may end up duplicated:

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/db/seeds.sql#L36-L43

For example, if you change the value of use_tenancy from 0 to 1 and then run db/admin.pl upgrade you will end up with 2 parameters for use_tenancy

Potential solution: check to see if those 3 global parameters are already in the db, and if not, insert, else do nothing.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)