Skip to content

Commit

Permalink
Merge pull request #2059 from RotherOSS/issue-#1881-Handle-charset-th…
Browse files Browse the repository at this point in the history
…at-are-declared-per-column

Issue #1881: Updating backup.pl to prevent own column charset and use…
  • Loading branch information
bschmalhofer authored Dec 21, 2022
2 parents 48ad860 + 0b083f6 commit b4fecd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/backup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ sub MySQLBackupForMigrateFromOTRS {

# substitutions for changing the character set
$Line =~ s/DEFAULT CHARSET=utf8/DEFAULT CHARSET=utf8mb4/; # for CREATE TABLE
$Line =~ s/CHARACTER SET .*?\s//; # for CREATE COLUMN
$Line =~ s/utf8mb4mb4/utf8mb4/; # in case it already was utf8mb4
$Line =~ s/utf8mb3mb4/utf8mb4/; # in case of some mixup
$Line =~ s/utf8mb4mb3/utf8mb4/; # in case of some mixup
Expand Down

0 comments on commit b4fecd5

Please sign in to comment.