Skip to content

Commit d2425b2

Browse files
committed
config: change default charset/DBCollat for SQLite3
Both are not used at the moment, though.
1 parent 7f4d0a9 commit d2425b2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎app/Config/Database.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class Database extends Config
5959
'DBPrefix' => 'db_', // Needed to ensure we're working correctly with prefixes live. DO NOT REMOVE FOR CI DEVS
6060
'pConnect' => false,
6161
'DBDebug' => true,
62-
'charset' => 'utf8mb4',
63-
'DBCollat' => 'utf8mb4_general_ci',
62+
'charset' => 'utf8',
63+
'DBCollat' => '',
6464
'swapPre' => '',
6565
'encrypt' => false,
6666
'compress' => false,

‎tests/system/Models/GeneralModelTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testMagicGetters(): void
7575

7676
// from DB
7777
$this->assertTrue(isset($this->model->DBPrefix));
78-
$this->assertSame('utf8mb4', $this->model->charset);
78+
$this->assertSame('utf8', $this->model->charset);
7979

8080
// from Builder
8181
$this->assertTrue(isset($this->model->QBNoEscape));

0 commit comments

Comments
 (0)