Skip to content

Commit cc4e4a5

Browse files
committed
Implement CR suggestions from nicolas-grekas
1 parent 5780201 commit cc4e4a5

File tree

4 files changed

+163
-111
lines changed

4 files changed

+163
-111
lines changed

UPGRADE-3.3.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,7 @@ FrameworkBundle
4343
HttpFoundation
4444
--------------
4545

46-
* The schema of the `PdoSessionHandler` to store sessions in a database changed.
47-
The following changes must be made to your `session` table:
48-
49-
- Create a new `sess_expiry` column. In MySQL this would be:
50-
51-
```sql
52-
ALTER TABLE `session` ADD `sess_expiry` INTEGER UNSIGNED NOT NULL;
53-
```
54-
55-
- Migrate the old data to the `sess_expiry` column. In MySQL this would be:
56-
57-
```sql
58-
UPDATE `session` SET `sess_expiry` = `sess_time` + `sess_lifetime`;
59-
```
60-
61-
- Remove the `sess_time` and `sess_lifetime` columns. In MySQL this would be:
62-
63-
```sql
64-
ALTER TABLE `session` DROP COLUMN `sess_time`, DROP COLUMN `sess_lifetime`;
65-
```
46+
* The `PdoSessionHandler` option `db_lifetime_col` has been deprecated.
6647

6748
HttpKernel
6849
-----------

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CHANGELOG
88
disabling `Range` and `Content-Length` handling, switching to chunked encoding instead
99
* added the `Cookie::fromString()` method that allows to create a cookie from a
1010
raw header string
11-
* PdoSessionHandler: [BC BREAK] removed the `lifetime` and `timestamp` columns in favor of `expiry` column
11+
* PdoSessionHandler: Deprecated the the `lifetime` column
1212

1313
3.1.0
1414
-----

0 commit comments

Comments
 (0)