summaryrefslogtreecommitdiff
path: root/rt/etc/upgrade/4.0.4/content
diff options
context:
space:
mode:
Diffstat (limited to 'rt/etc/upgrade/4.0.4/content')
-rw-r--r--rt/etc/upgrade/4.0.4/content16
1 files changed, 16 insertions, 0 deletions
diff --git a/rt/etc/upgrade/4.0.4/content b/rt/etc/upgrade/4.0.4/content
new file mode 100644
index 0000000..fdfcb3e
--- /dev/null
+++ b/rt/etc/upgrade/4.0.4/content
@@ -0,0 +1,16 @@
+@Initial = (
+ sub {
+ use strict;
+ my $templates = RT::Templates->new(RT->SystemUser);
+ $templates->Limit(
+ FIELD => 'Type',
+ OPERATOR => 'IS',
+ VALUE => 'NULL',
+ );
+ while (my $template = $templates->Next) {
+ my ($status, $msg) = $template->SetType('Perl');
+ $RT::Logger->warning( "Couldn't change Type of Template #" . $template->Id . ": $msg" ) unless $status;
+ }
+ },
+);
+