|
Lines 73-79
sub _new_schema {
Link Here
|
| 73 |
my $tz = $ENV{TZ}; |
73 |
my $tz = $ENV{TZ}; |
| 74 |
if ( $db_driver eq 'mysql' ) { |
74 |
if ( $db_driver eq 'mysql' ) { |
| 75 |
%encoding_attr = ( mysql_enable_utf8 => 1 ); |
75 |
%encoding_attr = ( mysql_enable_utf8 => 1 ); |
| 76 |
$encoding_query = "set NAMES 'utf8'"; |
76 |
$encoding_query = "set NAMES 'utf8mb4'"; |
| 77 |
$tz_query = qq(SET time_zone = "$tz") if $tz; |
77 |
$tz_query = qq(SET time_zone = "$tz") if $tz; |
| 78 |
} |
78 |
} |
| 79 |
elsif ( $db_driver eq 'Pg' ) { |
79 |
elsif ( $db_driver eq 'Pg' ) { |
| 80 |
- |
|
|