From b7ccc77728ea427bf230c8509532fba43b4adaf6 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 26 Jun 2015 20:01:28 -0700 Subject: [PATCH] Stop running "20150503.repositorysymbols.2.php" Fixes T8691. --- .../20150503.repositorysymbols.2.php | 31 +++---------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/resources/sql/autopatches/20150503.repositorysymbols.2.php b/resources/sql/autopatches/20150503.repositorysymbols.2.php index 0fc669e86b..35aa0aecec 100644 --- a/resources/sql/autopatches/20150503.repositorysymbols.2.php +++ b/resources/sql/autopatches/20150503.repositorysymbols.2.php @@ -1,29 +1,6 @@ establishConnection('w'); - -$projects = queryfx_all( - $conn_w, - 'SELECT * FROM %T', - 'repository_arcanistproject'); - -foreach ($projects as $project) { - $repo = id(new PhabricatorRepositoryQuery()) - ->setViewer(PhabricatorUser::getOmnipotentUser()) - ->withIDs(array($project['repositoryID'])) - ->executeOne(); - - if (!$repo) { - continue; - } - - echo pht("Migrating symbols for '%s' project...\n", $project['name']); - - queryfx( - $conn_w, - 'UPDATE %T SET repositoryPHID = %s WHERE arcanistProjectID = %d', - $table->getTableName(), - $repo->getPHID(), - $project['id']); -} +// NOTE: This migration moved existing symbols from Arcanist Projects to +// Repositories. It stopped running cleanly about two months later, after +// Spaces were introduced. Since this data is not important and can be +// trivially regenerated, just stop running the migration. See T8691.