Skip to content
Permalink
Browse files

utf8mb4 on database connection

  • Loading branch information...
Thoulah committed Apr 5, 2019
1 parent 6b689d0 commit 21cfc5f3f8e1bbfbdb278ed682068dea4e96ede8
Showing with 3 additions and 66 deletions.
  1. +0 −1 composer.json
  2. +1 −63 composer.lock
  3. +2 −2 mister42/Common.php
@@ -26,7 +26,6 @@
"2amigos/yii2-usuario": "~1.0",
"codemix/yii2-localeurls": "^1.7",
"gkralik/php-uglifyjs": "^1.0",
"tecnickcom/tcpdf": "^6.2",
"mpdf/mpdf": "^8.0",
"kop/yii2-scroll-pager": "*",
"nezhelskoy/yii2-highlight": "*",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -66,7 +66,7 @@ private function getComponents(): array {
'dsn' => 'mysql:host='.$this->secrets['MySQL']['host'].';dbname='.$this->secrets['MySQL']['db'],
'username' => $this->secrets['MySQL']['user'],
'password' => $this->secrets['MySQL']['pass'],
'charset' => 'utf8',
'charset' => 'utf8mb4',
'tablePrefix' => 'mister42_',
'attributes' => [
\PDO::MYSQL_ATTR_LOCAL_INFILE => true,
@@ -138,7 +138,7 @@ private function getComponents(): array {
'articles/search' => 'articles/search',
'articles/tag/<tag:\w+>' => 'articles/tag',
'articles/page-<page:\d+>' => 'articles/index',
'<controller:articles|calculator|feed|tools>' => '<controller>/index',
'<controller:articles|calculator|feed|test|tools>' => '<controller>/index',
'articles/<action>' => 'articles/<action>',
'<alias:\w+>' => 'site/<alias>',
],

0 comments on commit 21cfc5f

Please sign in to comment.
You can’t perform that action at this time.