Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-552

Global parameters may be duplicated when seeds.sql is run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0
    • None
    • Traffic Ops
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mitchell852@apache.org Jeremy Mitchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: