[
https://issues.apache.org/jira/browse/TC-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945763#comment-15945763
]
ASF GitHub Bot commented on TC-211:
-----------------------------------
GitHub user dg4prez opened a pull request:
https://github.com/apache/incubator-trafficcontrol/pull/413
[TC-211] don't add use_reval_pending value by default.
Removes the add for the use_reval_pending parameter and assignment to
global. This breaks in some situations, and isn't needed by default.
Parameter only needs to be added if in use.
https://issues.apache.org/jira/browse/TC-211
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dg4prez/incubator-trafficcontrol
fix_reval_pending
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafficcontrol/pull/413.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 #413
----
commit 1655351e90412244a623b637a2c9188228194c50
Author: Derek Gelinas <[email protected]>
Date: 2017-03-28T19:13:33Z
don't add use_reval_pending value by default.
----
> 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)