Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950188
20140722.renameauth.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
20140722.renameauth.php
View Options
<?php
$map
=
array
(
'PhabricatorAuthProviderOAuthAmazon'
=>
'PhabricatorAmazonAuthProvider'
,
'PhabricatorAuthProviderOAuthAsana'
=>
'PhabricatorAsanaAuthProvider'
,
'PhabricatorAuthProviderOAuth1Bitbucket'
=>
'PhabricatorBitbucketAuthProvider'
,
'PhabricatorAuthProviderOAuthDisqus'
=>
'PhabricatorDisqusAuthProvider'
,
'PhabricatorAuthProviderOAuthFacebook'
=>
'PhabricatorFacebookAuthProvider'
,
'PhabricatorAuthProviderOAuthGitHub'
=>
'PhabricatorGitHubAuthProvider'
,
'PhabricatorAuthProviderOAuthGoogle'
=>
'PhabricatorGoogleAuthProvider'
,
'PhabricatorAuthProviderOAuth1JIRA'
=>
'PhabricatorJIRAAuthProvider'
,
'PhabricatorAuthProviderLDAP'
=>
'PhabricatorLDAPAuthProvider'
,
'PhabricatorAuthProviderPassword'
=>
'PhabricatorPasswordAuthProvider'
,
'PhabricatorAuthProviderPersona'
=>
'PhabricatorPersonaAuthProvider'
,
'PhabricatorAuthProviderOAuthTwitch'
=>
'PhabricatorTwitchAuthProvider'
,
'PhabricatorAuthProviderOAuth1Twitter'
=>
'PhabricatorTwitterAuthProvider'
,
'PhabricatorAuthProviderOAuthWordPress'
=>
'PhabricatorWordPressAuthProvider'
,
);
echo
pht
(
'Migrating auth providers...'
).
"
\n
"
;
$table
=
new
PhabricatorAuthProviderConfig
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$provider
)
{
$provider_class
=
$provider
->
getProviderClass
();
queryfx
(
$conn_w
,
'UPDATE %T SET providerClass = %s WHERE id = %d'
,
$provider
->
getTableName
(),
idx
(
$map
,
$provider_class
,
$provider_class
),
$provider
->
getID
());
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 2:00 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224105
Default Alt Text
20140722.renameauth.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment