Skip to content

Commit edc56ed

Browse files
[HttpFoundation] Rename session expiry index
1 parent 0a16914 commit edc56ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ CHANGELOG
104104
make sure to run `ALTER TABLE sessions MODIFY sess_lifetime INTEGER UNSIGNED NOT NULL` to
105105
update your database.
106106
* `PdoSessionHandler` now precalculates the expiry timestamp in the lifetime column,
107-
make sure to run `CREATE INDEX EXPIRY ON sessions (sess_lifetime)` to update your database
107+
make sure to run `CREATE INDEX expiry ON sessions (sess_lifetime)` to update your database
108108
to speed up garbage collection of expired sessions.
109109
* added `SessionHandlerFactory` to create session handlers with a DSN
110110
* added `IpUtils::anonymize()` to help with GDPR compliance.

Session/Storage/Handler/PdoSessionHandler.php

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

208208
try {
209209
$this->pdo->exec($sql);
210-
$this->pdo->exec("CREATE INDEX EXPIRY ON $this->table ($this->lifetimeCol)");
210+
$this->pdo->exec("CREATE INDEX expiry ON $this->table ($this->lifetimeCol)");
211211
} catch (\PDOException $e) {
212212
$this->rollback();
213213

0 commit comments

Comments
 (0)