Replace changed by expires_at in session handling#9990
Conversation
8493ba0 to
f214fe7
Compare
|
I rebased the branch onto the lastest of the "master" branch to fix the CI runs. |
|
We should think about changing |
|
Some of my comments in #9991 apply here. |
|
@alecpl I fixed the version number in the "initial.sql"-files, and setting the expiry time in |
91dba0c to
b804142
Compare
|
I rebased onto the latest of the "master" branch. |
|
This might be a bit picky but I think update files should also include something like ALTER TABLE `session` RENAME INDEX `changed_index` TO `expires_at_index`; I think the name of the index is not that important but I think the schema should be the same when created by the initial file or through updates. The change to |
|
@johndoh Thank you for the review! I agree that renaming the index is a good idea and added it to the SQL migration files.
What do you mean by that? I don't see a missing change in there that the other initial-files have. (I also fixed the |
|
@pabzm my apologies. I somehow missed that The alter table statement for sqlite should be ALTER TABLE `session` RENAME INDEX `ix_session_changed` TO `ix_session_expires_at`;i think, i have not tested it, just corrected the index names. and for postgres ALTER TABLE `session` RENAME INDEX `session_changed_idx` TO `session_expires_at_idx`;i think |
|
@johndoh Thank you for that hint! I didn't expect a different index name in the differente databases. |
|
If y'all would be fine with merging please let me know so I can cleanup the commit history before someone hits the button! |
e395ede to
c34092b
Compare
|
I squashed all the commits into one, didn't change anything further. |
|
@alecpl Please have another look, I'd like to merge this soon. |
|
@alecpl This is the last code change planned for v1.7, could you please have another look? Or let me know when/how we can go forward with this? I requested a new review from you 2 weeks ago, is there some blocker? |
|
I'm using 1.7 RC2 on the test server with PHP 8.5.0 and waiting for the final version for the production server. |
alecpl
left a comment
There was a problem hiding this comment.
Looks good. Rebase on master to make CI green before merge, please
This prepares using extended session lifetimes configurable per session
358d08d to
d676576
Compare
This prepares using extended session lifetimes configurable per session