Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106875839
20140722.renameauth.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Apr 1, 22:20
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Apr 3, 22:20 (2 d)
Engine
blob
Format
Raw Data
Handle
25294680
Attached To
rPH Phabricator
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
());
}
Event Timeline
Log In to Comment