[Rt-commit] [rtir] 29/30: Upgrade old "blocks" lifecycles to countermeasures
Shawn Moore
shawn at bestpractical.com
Fri May 13 19:53:18 EDT 2016
This is an automated email from the git hooks/post-receive script.
shawn pushed a commit to branch 3.4/countermeasures
in repository rtir.
commit 006b41fdcccc3feff6097b84eed4b58c0d1b9490
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu May 12 23:50:07 2016 +0000
Upgrade old "blocks" lifecycles to countermeasures
---
etc/upgrade/3.3.0/content | 9 +++++++++
etc/upgrade/3.3.4/content | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/etc/upgrade/3.3.0/content b/etc/upgrade/3.3.0/content
index 424956e..02eb690 100644
--- a/etc/upgrade/3.3.0/content
+++ b/etc/upgrade/3.3.0/content
@@ -50,6 +50,15 @@ our @Final = (
for ( 'RTIR_RequireConstituencyChange', 'RTIR_RequireConstituencyGroupChange' );
}
+ # rename blocks to countermeasures
+ {
+ my $queues = RT::Queues->new(RT->SystemUser);
+ $queues->Limit(FIELD => 'Lifecycle', VALUE => 'blocks');
+ while (my $queue = $queues->Next) {
+ $queue->SetLifecycle(RT::IR->lifecycle_countermeasure);
+ }
+ }
+
# update values of rtir constituency
my @constituencies;
{
diff --git a/etc/upgrade/3.3.4/content b/etc/upgrade/3.3.4/content
index c45f25d..2009a08 100644
--- a/etc/upgrade/3.3.4/content
+++ b/etc/upgrade/3.3.4/content
@@ -18,7 +18,7 @@ our @Initial = (
elsif ($name =~ /^Investigations - /) {
$lifecycle = RT::IR->lifecycle_investigation;
}
- elsif ($name =~ /^Blocks - /) {
+ elsif ($name =~ /^(Blocks|Countermeasures) - /) {
$lifecycle = RT::IR->lifecycle_countermeasure;
}
else {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list