From 48f6189f32263b303125de11478eab489e75cf11 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Fri, 18 Jul 2014 11:35:22 +1000 Subject: [PATCH] Allow mailing lists to be permanently deleted Summary: Allow `PhabricatorMetaMTAMailingList` to be permanently deleted with `./bin/remove destroy`. Test Plan: ``` ./bin/remove destroy PHID-MLST-nseux3r55escj573shsf IMPORTANT: OBJECTS WILL BE PERMANENTLY DESTROYED! There is no way to undo this operation or ever retrieve this data. These 1 object(s) will be completely destroyed forever: - PHID-MLST-nseux3r55escj573shsf (PhabricatorMetaMTAMailingList) Are you absolutely certain you want to destroy these 1 object(s)? [y/N] y Destroying objects... Destroying PhabricatorMetaMTAMailingList PHID-MLST-nseux3r55escj573shsf... Permanently destroyed 1 object(s). ``` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9979 --- .../storage/PhabricatorMetaMTAMailingList.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php b/src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php index b24ca55185..578c3cf744 100644 --- a/src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php +++ b/src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php @@ -1,7 +1,9 @@ openTransaction(); + $this->delete(); + $this->saveTransaction(); + } + }