Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F649532
20190206.external.04.providerlink.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
839 B
Referenced Files
None
Subscribers
None
20190206.external.04.providerlink.php
View Options
<?php
$account_table
=
new
PhabricatorExternalAccount
();
$account_conn
=
$account_table
->
establishConnection
(
'w'
);
$table_name
=
$account_table
->
getTableName
();
$config_table
=
new
PhabricatorAuthProviderConfig
();
$config_conn
=
$config_table
->
establishConnection
(
'w'
);
foreach
(
new
LiskRawMigrationIterator
(
$account_conn
,
$table_name
)
as
$row
)
{
if
(
strlen
(
$row
[
'providerConfigPHID'
]))
{
continue
;
}
$config_row
=
queryfx_one
(
$config_conn
,
'SELECT phid
FROM %R
WHERE providerType = %s AND providerDomain = %s
LIMIT 1'
,
$config_table
,
$row
[
'accountType'
],
$row
[
'accountDomain'
]);
if
(!
$config_row
)
{
continue
;
}
queryfx
(
$account_conn
,
'UPDATE %R
SET providerConfigPHID = %s
WHERE id = %d'
,
$account_table
,
$config_row
[
'phid'
],
$row
[
'id'
]);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 14, 7:31 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
151221
Default Alt Text
20190206.external.04.providerlink.php (839 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment