Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Session/Console/Schema/SessionSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/Session/Console/Schema/SessionSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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,
);
}
Expand Down
Loading