From f38dc73fc90229f7b411e7eb57fd79ced75f6e9b Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 15 Sep 2023 16:01:06 +0200 Subject: [PATCH] chg: [Console:trainingShell] Provide correct filters for wiping data --- app/Console/Command/TrainingShell.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Command/TrainingShell.php b/app/Console/Command/TrainingShell.php index c553a13b2..8fcd8880d 100644 --- a/app/Console/Command/TrainingShell.php +++ b/app/Console/Command/TrainingShell.php @@ -211,17 +211,17 @@ class TrainingShell extends AppShell { public function WipeAllSyncs() { - $this->Server->deleteAll(['Server.id' > 0]); + $this->Server->deleteAll(['Server.id !=' => 0]); } public function WipeAllUsers() { - $this->User->deleteAll(['User.id' > 1]); + $this->User->deleteAll(['User.email !=' => 'admin@admin.test']); } public function WipeAllOrgs() { - $this->Organisation->deleteAll(['Organisation.id' > 1]); + $this->Organisation->deleteAll(['Organisation.name !=' => 'ORGNAME']); } private function __createOrgFromBlueprint($id)