@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a missing migration

Summary: This migration script is required for D9999, which has already landed.

Test Plan: Ran `./bin/storage upgrade` and can log in again.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10010

authored by

Joshua Spence and committed by
epriestley
458cf8c8 f4b05312

+34
+34
resources/sql/autopatches/20140722.renameauth.php
··· 1 + <?php 2 + 3 + $map = array( 4 + 'PhabricatorAuthProviderOAuthAmazon' => 'PhabricatorAmazonAuthProvider', 5 + 'PhabricatorAsanaAuthProvider' => 'PhabricatorAsanaAuthProvider', 6 + 'PhabricatorAuthProviderOAuth1Bitbucket' 7 + => 'PhabricatorBitbucketAuthProvider', 8 + 'PhabricatorAuthProviderOAuthDisqus' => 'PhabricatorDisqusAuthProvider', 9 + 'PhabricatorAuthProviderOAuthFacebook' => 'PhabricatorFacebookAuthProvider', 10 + 'PhabricatorAuthProviderOAuthGitHub' => 'PhabricatorGitHubAuthProvider', 11 + 'PhabricatorAuthProviderOAuthGoogle' => 'PhabricatorGoogleAuthProvider', 12 + 'PhabricatorAuthProviderOAuth1JIRA' => 'PhabricatorJIRAAuthProvider', 13 + 'PhabricatorAuthProviderLDAP' => 'PhabricatorLDAPAuthProvider', 14 + 'PhabricatorAuthProviderPassword' => 'PhabricatorPasswordAuthProvider', 15 + 'PhabricatorAuthProviderPersona' => 'PhabricatorPersonaAuthProvider', 16 + 'PhabricatorAuthProviderOAuthTwitch' => 'PhabricatorTwitchAuthProvider', 17 + 'PhabricatorAuthProviderOAuth1Twitter' => 'PhabricatorTwitterAuthProvider', 18 + 'PhabricatorAuthProviderOAuthWordPress' => 'PhabricatorWordPressAuthProvider', 19 + ); 20 + 21 + echo "Migrating auth providers...\n"; 22 + $table = new PhabricatorAuthProviderConfig(); 23 + $conn_w = $table->establishConnection('w'); 24 + 25 + foreach (new LiskMigrationIterator($table) as $provider) { 26 + $provider_class = $provider->getProviderClass(); 27 + 28 + queryfx( 29 + $conn_w, 30 + 'UPDATE %T SET providerClass = %s WHERE id = %d', 31 + $provider->getTableName(), 32 + idx($map, $provider_class, $provider_class), 33 + $provider->getID()); 34 + }