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:16:01 UTC
[jira] [Updated] (TC-552) Global parameters may be duplicated when
seeds.sql is run
[ https://issues.apache.org/jira/browse/TC-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy Mitchell updated TC-552:
-------------------------------
Affects Version/s: 2.1.0
> 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
> Affects Versions: 2.1.0
> 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)