@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.

Stop running "20150503.repositorysymbols.2.php"

Fixes T8691.

+4 -27
+4 -27
resources/sql/autopatches/20150503.repositorysymbols.2.php
··· 1 1 <?php 2 2 3 - $table = new PhabricatorRepositorySymbol(); 4 - $conn_w = $table->establishConnection('w'); 5 - 6 - $projects = queryfx_all( 7 - $conn_w, 8 - 'SELECT * FROM %T', 9 - 'repository_arcanistproject'); 10 - 11 - foreach ($projects as $project) { 12 - $repo = id(new PhabricatorRepositoryQuery()) 13 - ->setViewer(PhabricatorUser::getOmnipotentUser()) 14 - ->withIDs(array($project['repositoryID'])) 15 - ->executeOne(); 16 - 17 - if (!$repo) { 18 - continue; 19 - } 20 - 21 - echo pht("Migrating symbols for '%s' project...\n", $project['name']); 22 - 23 - queryfx( 24 - $conn_w, 25 - 'UPDATE %T SET repositoryPHID = %s WHERE arcanistProjectID = %d', 26 - $table->getTableName(), 27 - $repo->getPHID(), 28 - $project['id']); 29 - } 3 + // NOTE: This migration moved existing symbols from Arcanist Projects to 4 + // Repositories. It stopped running cleanly about two months later, after 5 + // Spaces were introduced. Since this data is not important and can be 6 + // trivially regenerated, just stop running the migration. See T8691.