Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / notification / engineextension / PhabricatorNotificationDestructionEngineExtension.php
blob9c0bf52df63a3eb2a450a776e632ae9939cb68f1
1 <?php
3 final class PhabricatorNotificationDestructionEngineExtension
4 extends PhabricatorDestructionEngineExtension {
6 const EXTENSIONKEY = 'notifications';
8 public function getExtensionName() {
9 return pht('Notifications');
12 public function destroyObject(
13 PhabricatorDestructionEngine $engine,
14 $object) {
16 $table = new PhabricatorFeedStoryNotification();
17 $conn_w = $table->establishConnection('w');
19 queryfx(
20 $conn_w,
21 'DELETE FROM %T WHERE primaryObjectPHID = %s',
22 $table->getTableName(),
23 $object->getPHID());