8000 minor #48270 [HttpFoundation] Rename session expiry index (nicolas-gr… · symfony/symfony@648d84f · GitHub
[go: up one dir, main page]

Skip to content

Commit 648d84f

Browse files
committed
minor #48270 [HttpFoundation] Rename session expiry index (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [HttpFoundation] Rename session expiry index | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Uppercase is for SQL keywords. Commits ------- 39bf560 [HttpFoundation] Rename session expiry index
2 parents 2dc0670 + 39bf560 commit 648d84f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/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.

src/Symfony/Component/HttpFoundation/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)
0