Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852420
20140115.auth.3.unlimit.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
695 B
Referenced Files
None
Subscribers
None
20140115.auth.3.unlimit.php
View Options
<?php
// Prior to this patch, we issued sessions "web-1", "web-2", etc., up to some
// limit. This collapses all the "web-X" sessions into "web" sessions.
$session_table
=
new
PhabricatorAuthSession
(
)
;
$conn_w
=
$session_table
->
establishConnection
(
'w'
)
;
foreach
(
new
LiskMigrationIterator
(
$session_table
)
as
$session
)
{
$id
=
$session
->
getID
(
)
;
echo
pht
(
'Migrating session %d...'
,
$id
)
.
"\n"
;
$old_type
=
$session
->
getType
(
)
;
$new_type
=
preg_replace
(
'/-.*$/'
,
''
,
$old_type
)
;
if
(
$old_type
!==
$new_type
)
{
queryfx
(
$conn_w
,
'UPDATE %T SET type = %s WHERE id = %d'
,
$session_table
->
getTableName
(
)
,
$new_type
,
$id
)
;
}
}
echo
pht
(
'Done.'
)
.
"\n"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:32 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1758379
Default Alt Text
20140115.auth.3.unlimit.php (695 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment