Differential D19816 Diff 47330 src/applications/repository/storage/PhabricatorRepositoryURIIndex.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryURIIndex.php
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | foreach ($uris as $key => $uri) { | ||||
| $repository_phid, | $repository_phid, | ||||
| $uri); | $uri); | ||||
| } | } | ||||
| $table->openTransaction(); | $table->openTransaction(); | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'DELETE FROM %T WHERE repositoryPHID = %s', | 'DELETE FROM %R WHERE repositoryPHID = %s', | ||||
| $table->getTableName(), | $table, | ||||
| $repository_phid); | $repository_phid); | ||||
| if ($sql) { | if ($sql) { | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'INSERT INTO %T (repositoryPHID, repositoryURI) VALUES %Q', | 'INSERT INTO %R (repositoryPHID, repositoryURI) VALUES %LQ', | ||||
| $table->getTableName(), | $table, | ||||
| implode(', ', $sql)); | $sql); | ||||
| } | } | ||||
| $table->saveTransaction(); | $table->saveTransaction(); | ||||
| } | } | ||||
| } | } | ||||