diff --git a/src/Session/Console/Schema/SessionSchema.php b/src/Session/Console/Schema/SessionSchema.php index 0c0fc55..c6f6958 100644 --- a/src/Session/Console/Schema/SessionSchema.php +++ b/src/Session/Console/Schema/SessionSchema.php @@ -70,7 +70,7 @@ public function sessionTable(string $table): CreateTable $createTable->setOptions(options: [ 'engine' => new Literal(literal: 'InnoDB'), 'default charset' => new Literal(literal: 'utf8mb4'), - 'collate' => new Literal(literal: 'utf8mb4_unicode_ci'), + 'collate' => new Literal(literal: 'utf8mb4_0900_ai_ci'), ]); return $createTable; diff --git a/test/unit/Session/Console/Schema/SessionSchemaTest.php b/test/unit/Session/Console/Schema/SessionSchemaTest.php index b394c8b..7ce328e 100644 --- a/test/unit/Session/Console/Schema/SessionSchemaTest.php +++ b/test/unit/Session/Console/Schema/SessionSchemaTest.php @@ -70,7 +70,7 @@ public function sessionTableOptionsSetEngineCharsetAndCollation(): void self::assertInstanceOf(Literal::class, $options['engine']); self::assertSame('InnoDB', $options['engine']->getLiteral()); self::assertSame('utf8mb4', $options['default charset']->getLiteral()); - self::assertSame('utf8mb4_unicode_ci', $options['collate']->getLiteral()); + self::assertSame('utf8mb4_0900_ai_ci', $options['collate']->getLiteral()); } #[Test] @@ -90,7 +90,7 @@ public function sessionTableRendersTheExactStatement(): void . '`expires_at` DATETIME NOT NULL , ' . 'PRIMARY KEY (`id`), ' . 'INDEX `idx_expires_at`(`expires_at`) ' - . ') ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci', + . ') ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci', $sql, ); }