Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / engineextension / PhabricatorSearchIndexVersionDestructionEngineExtension.php
blob83112dfd50fcfab1c45c27c1023f552c77c1f628
1 <?php
3 final class PhabricatorSearchIndexVersionDestructionEngineExtension
4 extends PhabricatorDestructionEngineExtension {
6 const EXTENSIONKEY = 'search.index.version';
8 public function getExtensionName() {
9 return pht('Search Index Versions');
12 public function destroyObject(
13 PhabricatorDestructionEngine $engine,
14 $object) {
16 $table = new PhabricatorSearchIndexVersion();
18 queryfx(
19 $table->establishConnection('w'),
20 'DELETE FROM %T WHERE objectPHID = %s',
21 $table->getTableName(),
22 $object->getPHID());