Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14029993
D14490.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
857 B
Referenced Files
None
Subscribers
None
D14490.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 10:50 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739803
Default Alt Text
D14490.id.diff (857 B)
Attached To
Mode
D14490: Permanently destroy Almanac properties with the destruction engine
Attached
Detach File
Event Timeline
Log In to Comment