mitchell852 closed pull request #2686: adds maxRevalDurationDays to seeds.sql
URL: https://github.com/apache/trafficcontrol/pull/2686
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/app/db/seeds.sql b/traffic_ops/app/db/seeds.sql
index 3bf138e66..36671a680 100644
--- a/traffic_ops/app/db/seeds.sql
+++ b/traffic_ops/app/db/seeds.sql
@@ -48,6 +48,10 @@ BEGIN
                 insert into parameter (name, config_file, value) values 
('use_tenancy', 'global', '0');
                 insert into profile_parameter (profile, parameter) values ( 
(select id from profile where name = 'GLOBAL'), (select id from parameter where 
name = 'use_tenancy' and config_file = 'global' and value = '0') ) ON CONFLICT 
(profile, parameter) DO NOTHING;
         END IF;
+        IF NOT EXISTS (SELECT id FROM PARAMETER WHERE name = 
'maxRevalDurationDays' AND config_file = 'regex_revalidate.config') THEN
+                insert into parameter (name, config_file, value) values 
('maxRevalDurationDays', 'regex_revalidate.config', '90');
+                insert into profile_parameter (profile, parameter) values ( 
(select id from profile where name = 'GLOBAL'), (select id from parameter where 
name = 'maxRevalDurationDays' and config_file = 'regex_revalidate.config' and 
value = '90') ) ON CONFLICT (profile, parameter) DO NOTHING;
+        END IF;
 END
 $do$;
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to