You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Nir Sopher (JIRA)" <ji...@apache.org> on 2017/03/27 19:05:41 UTC

[jira] [Created] (TC-211) admin.pl setup fails - 20170226190747_add_reval_pending.sql

Nir Sopher created TC-211:
-----------------------------

             Summary: admin.pl setup fails - 20170226190747_add_reval_pending.sql
                 Key: TC-211
                 URL: https://issues.apache.org/jira/browse/TC-211
             Project: Traffic Control
          Issue Type: Bug
          Components: Traffic Ops
    Affects Versions: 2.1.0
            Reporter: Nir Sopher


When calling "db/admin.pl --env=<env> setup" the command fails on running one of the migration scripts:
2017/03/19 09:23:33 FAIL 20170226190747_add_reval_pending.sql (pq: null value in column "profile" violates not-null constraint), quitting migration.
Can't run goose

The issue is caused by line 20 in file 20170226190747_add_reval_pending.sql :
insert into profile_parameter (profile, parameter) values ((select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'use_reval_pending'));

When examining the DB it seems that the "GLOBAL" profile does not exists.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)