-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed database table 'groups' to 'permission_groups' (keyword in My…
…SQL >= 8).
- Loading branch information
Showing
44 changed files
with
173 additions
and
136 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
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
41 changes: 41 additions & 0 deletions
41
scripts/MigrateToZnuny6_1/UpgradeDatabaseStructure/RenameTables.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,41 @@ | ||
# -- | ||
# 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. | ||
# -- | ||
## nofilter(TidyAll::Plugin::OTRS::Perl::Pod::NamePod) | ||
|
||
package scripts::MigrateToZnuny6_1::UpgradeDatabaseStructure::RenameTables; ## no critic | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent qw(scripts::MigrateToZnuny6_1::Base); | ||
|
||
use Kernel::System::VariableCheck qw(:all); | ||
|
||
our @ObjectDependencies; | ||
|
||
=head1 NAME | ||
Rename database tables. | ||
=cut | ||
|
||
sub Run { | ||
my ( $Self, %Param ) = @_; | ||
|
||
my @XML = ( | ||
'<TableAlter NameOld="groups" NameNew="permission_groups"/>', | ||
); | ||
|
||
return if !$Self->ExecuteXMLDBArray( | ||
XMLArray => \@XML, | ||
); | ||
|
||
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
Oops, something went wrong.