diff --git a/src/applications/system/engine/PhabricatorDestructionEngine.php b/src/applications/system/engine/PhabricatorDestructionEngine.php --- a/src/applications/system/engine/PhabricatorDestructionEngine.php +++ b/src/applications/system/engine/PhabricatorDestructionEngine.php @@ -92,6 +92,10 @@ $token->delete(); } } + + if ($object instanceof AlmanacPropertyInterface) { + $this->destroyAlmanacProperties($object_phid); + } } private function destroyEdges($src_phid) { @@ -148,4 +152,15 @@ $object_phid); } + private function destroyAlmanacProperties($object_phid) { + $table = new AlmanacProperty(); + $conn_w = $table->establishConnection('w'); + + queryfx( + $conn_w, + 'DELETE FROM %T WHERE objectPHID = %s', + $table->getTableName(), + $object_phid); + } + }