Skip to content

Commit

Permalink
Add incremental upgrade steps for 4.0.19, 4.2.1, and 4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmv committed Jan 8, 2014
1 parent c38ecca commit 949a262
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lib/RT/Migrate/Incremental.pm
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,18 @@ s!(?<=Your ticket has been (?:approved|rejected) by { eval { )\$Approval->OwnerO
},
},

'4.0.19' => {
'RT::CustomField' => sub {
my ($ref) = @_;
$ref->{LookupType} = 'RT::Class-RT::Article'
if $ref->{LookupType} eq 'RT::FM::Class-RT::FM::Article';
},
'RT::ObjectCustomFieldValue' => sub {
my ($ref) = @_;
$ref->{ObjectType} = 'RT::Article'
if $ref->{ObjectType} eq 'RT::FM::Article';
},
},


'4.1.0' => {
Expand Down Expand Up @@ -617,6 +629,29 @@ This is a forward of ticket #{ $Ticket->id }
}
},
},

'4.2.1' => {
'RT::Attribute' => sub {
my ($ref, $classref) = @_;
if ($ref->{ObjectType} eq "RT::System" and $ref->{Name} eq "BrandedSubjectTag") {
$$classref = undef;
}
},
},

'4.2.2' => {
'RT::CustomField' => sub {
my ($ref) = @_;
$ref->{LookupType} = 'RT::Class-RT::Article'
if $ref->{LookupType} eq 'RT::FM::Class-RT::FM::Article';
},
'RT::ObjectCustomFieldValue' => sub {
my ($ref) = @_;
$ref->{ObjectType} = 'RT::Article'
if $ref->{ObjectType} eq 'RT::FM::Article';
},
},

);

1;

0 comments on commit 949a262

Please sign in to comment.