Page MenuHomePhabricator

D14490.diff
No OneTemporary

D14490.diff

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);
+ }
+
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 4:53 AM (11 h, 22 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739803
Default Alt Text
D14490.diff (857 B)

Event Timeline