Skip to content

Commit 3a662d0

Browse files
committed
[Cache] Change PDO cache table collate from utf8_bin to utf8mb4_bin
1 parent 94aed41 commit 3a662d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Store/PdoStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function createTable(): void
284284

285285
switch ($driver) {
286286
case 'mysql':
287-
$sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(44) NOT NULL, $this->expirationCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB";
287+
$sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(44) NOT NULL, $this->expirationCol INTEGER UNSIGNED NOT NULL) COLLATE utf8mb4_bin, ENGINE = InnoDB";
288288
break;
289289
case 'sqlite':
290290
$sql = "CREATE TABLE $this->table ($this->idCol TEXT NOT NULL PRIMARY KEY, $this->tokenCol TEXT NOT NULL, $this->expirationCol INTEGER)";

0 commit comments

Comments
 (0)