-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increased size of text columns for standard templates and notificatio…
…n event messages.
- Loading branch information
Showing
8 changed files
with
111 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
scripts/Migration/Znuny/UpgradeDatabaseStructure/NotificationEventMessage.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -- | ||
# Copyright (C) 2021 Znuny GmbH, https://znuny.org/ | ||
# -- | ||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see | ||
# the enclosed file COPYING for license information (AGPL). If you | ||
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt. | ||
# -- | ||
|
||
package scripts::Migration::Znuny::UpgradeDatabaseStructure::NotificationEventMessage; ## no critic | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent qw(scripts::Migration::Base); | ||
|
||
our @ObjectDependencies; | ||
|
||
=head1 SYNOPSIS | ||
Increases size of columns of database table notification_event_message. | ||
=cut | ||
|
||
sub Run { | ||
my ( $Self, %Param ) = @_; | ||
|
||
return if !$Self->_IncreaseColumnsSize(%Param); | ||
|
||
return 1; | ||
} | ||
|
||
sub _IncreaseColumnsSize { | ||
my ( $Self, %Param ) = @_; | ||
|
||
my @XMLStrings = ( | ||
'<TableAlter Name="notification_event_message"> | ||
<ColumnChange NameNew="text" NameOld="text" Required="true" Size="16777216" Type="VARCHAR"/> | ||
</TableAlter>', | ||
); | ||
|
||
return if !$Self->ExecuteXMLDBArray( | ||
XMLArray => \@XMLStrings, | ||
); | ||
|
||
return 1; | ||
} | ||
|
||
1; |
48 changes: 48 additions & 0 deletions
48
scripts/Migration/Znuny/UpgradeDatabaseStructure/StandardTemplate.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -- | ||
# Copyright (C) 2021 Znuny GmbH, https://znuny.org/ | ||
# -- | ||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see | ||
# the enclosed file COPYING for license information (AGPL). If you | ||
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt. | ||
# -- | ||
|
||
package scripts::Migration::Znuny::UpgradeDatabaseStructure::StandardTemplate; ## no critic | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent qw(scripts::Migration::Base); | ||
|
||
our @ObjectDependencies; | ||
|
||
=head1 SYNOPSIS | ||
Increases size of columns of database table standard_template. | ||
=cut | ||
|
||
sub Run { | ||
my ( $Self, %Param ) = @_; | ||
|
||
return if !$Self->_IncreaseColumnsSize(%Param); | ||
|
||
return 1; | ||
} | ||
|
||
sub _IncreaseColumnsSize { | ||
my ( $Self, %Param ) = @_; | ||
|
||
my @XMLStrings = ( | ||
'<TableAlter Name="standard_template"> | ||
<ColumnChange NameNew="text" NameOld="text" Required="true" Size="16777216" Type="VARCHAR"/> | ||
</TableAlter>', | ||
); | ||
|
||
return if !$Self->ExecuteXMLDBArray( | ||
XMLArray => \@XMLStrings, | ||
); | ||
|
||
return 1; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters