File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ class Database extends Config
1818 'DBPrefix ' => '' ,
1919 'pConnect ' => false ,
2020 'DBDebug ' => true ,
21- 'charset ' => 'utf8 ' ,
22- 'DBCollat ' => 'utf8_general_ci ' ,
21+ 'charset ' => 'utf8mb4 ' ,
22+ 'DBCollat ' => 'utf8mb4_general_ci ' ,
2323 'swapPre ' => '' ,
2424 'encrypt ' => false ,
2525 'compress ' => false ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Database extends Config
1010
1111 // MySQLi
1212 public array $ default = [
13- 'DSN ' => 'MySQLi://username:password@hostname:3306/database?charset=utf8 &DBCollat=utf8_general_ci ' ,
13+ 'DSN ' => 'MySQLi://username:password@hostname:3306/database?charset=utf8mb4 &DBCollat=utf8mb4_general_ci ' ,
1414 // ...
1515 ];
1616
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ class Database extends Config
2020 'DBPrefix ' => '' ,
2121 'pConnect ' => true ,
2222 'DBDebug ' => true ,
23- 'charset ' => 'utf8 ' ,
24- 'DBCollat ' => 'utf8_general_ci ' ,
23+ 'charset ' => 'utf8mb4 ' ,
24+ 'DBCollat ' => 'utf8mb4_general_ci ' ,
2525 'swapPre ' => '' ,
2626 'encrypt ' => false ,
2727 'compress ' => false ,
@@ -36,8 +36,8 @@ class Database extends Config
3636 'DBPrefix ' => '' ,
3737 'pConnect ' => true ,
3838 'DBDebug ' => true ,
39- 'charset ' => 'utf8 ' ,
40- 'DBCollat ' => 'utf8_general_ci ' ,
39+ 'charset ' => 'utf8mb4 ' ,
40+ 'DBCollat ' => 'utf8mb4_general_ci ' ,
4141 'swapPre ' => '' ,
4242 'encrypt ' => false ,
4343 'compress ' => false ,
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ class Database extends Config
1818 'DBPrefix ' => '' ,
1919 'pConnect ' => true ,
2020 'DBDebug ' => true ,
21- 'charset ' => 'utf8 ' ,
22- 'DBCollat ' => 'utf8_general_ci ' ,
21+ 'charset ' => 'utf8mb4 ' ,
22+ 'DBCollat ' => 'utf8mb4_general_ci ' ,
2323 'swapPre ' => '' ,
2424 'compress ' => false ,
2525 'encrypt ' => false ,
Original file line number Diff line number Diff line change 1010 'DBPrefix ' => '' ,
1111 'pConnect ' => false ,
1212 'DBDebug ' => true ,
13- 'charset ' => 'utf8 ' ,
14- 'DBCollat ' => 'utf8_general_ci ' ,
13+ 'charset ' => 'utf8mb4 ' ,
14+ 'DBCollat ' => 'utf8mb4_general_ci ' ,
1515 'swapPre ' => '' ,
1616 'encrypt ' => false ,
1717 'compress ' => false ,
Original file line number Diff line number Diff line change 22
33$ attributes = ['ENGINE ' => 'InnoDB ' ];
44$ forge ->createTable ('table_name ' , false , $ attributes );
5- // produces: CREATE TABLE `table_name` (...) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
5+ // produces: CREATE TABLE `table_name` (...) ENGINE = InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
You can’t perform that action at this time.
0 commit comments