Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
8fa4899e
Commit
8fa4899e
authored
Sep 22, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use utf8_unicode_ci instead of utf8_general_ci
fixes #5119
parent
6c51866e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
m130524_201442_init.php
apps/advanced/console/migrations/m130524_201442_init.php
+2
-1
m140506_102106_rbac_init.php
framework/rbac/migrations/m140506_102106_rbac_init.php
+2
-1
No files found.
apps/advanced/console/migrations/m130524_201442_init.php
View file @
8fa4899e
...
@@ -9,7 +9,8 @@ class m130524_201442_init extends Migration
...
@@ -9,7 +9,8 @@ class m130524_201442_init extends Migration
{
{
$tableOptions
=
null
;
$tableOptions
=
null
;
if
(
$this
->
db
->
driverName
===
'mysql'
)
{
if
(
$this
->
db
->
driverName
===
'mysql'
)
{
$tableOptions
=
'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'
;
// http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci
$tableOptions
=
'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'
;
}
}
$this
->
createTable
(
'{{%user}}'
,
[
$this
->
createTable
(
'{{%user}}'
,
[
...
...
framework/rbac/migrations/m140506_102106_rbac_init.php
View file @
8fa4899e
...
@@ -36,7 +36,8 @@ class m140506_102106_rbac_init extends \yii\db\Migration
...
@@ -36,7 +36,8 @@ class m140506_102106_rbac_init extends \yii\db\Migration
$tableOptions
=
null
;
$tableOptions
=
null
;
if
(
$this
->
db
->
driverName
===
'mysql'
)
{
if
(
$this
->
db
->
driverName
===
'mysql'
)
{
$tableOptions
=
'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'
;
// http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci
$tableOptions
=
'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'
;
}
}
$this
->
createTable
(
$authManager
->
ruleTable
,
[
$this
->
createTable
(
$authManager
->
ruleTable
,
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment