Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14031739
D9416.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
805 B
Referenced Files
None
Subscribers
None
D9416.id.diff
View Options
diff --git a/src/applications/herald/storage/HeraldRule.php b/src/applications/herald/storage/HeraldRule.php
--- a/src/applications/herald/storage/HeraldRule.php
+++ b/src/applications/herald/storage/HeraldRule.php
@@ -3,7 +3,8 @@
final class HeraldRule extends HeraldDAO
implements
PhabricatorFlaggableInterface,
- PhabricatorPolicyInterface {
+ PhabricatorPolicyInterface,
+ PhabricatorDestructableInterface {
const TABLE_RULE_APPLIED = 'herald_ruleapplied';
@@ -250,4 +251,15 @@
return null;
}
+
+/* -( PhabricatorDestructableInterface )----------------------------------- */
+
+ public function destroyObjectPermanently(
+ PhabricatorDestructionEngine $engine) {
+
+ $this->openTransaction();
+ $this->delete();
+ $this->saveTransaction();
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 10, 11:49 AM (2 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711208
Default Alt Text
D9416.id.diff (805 B)
Attached To
Mode
D9416: Allow herald rules to be deleted with `./bin/remove destroy`.
Attached
Detach File
Event Timeline
Log In to Comment