mirror of https://github.com/MISP/MISP
chg: [Console:trainingShell] Provide correct filters for wiping data
parent
088430d4d4
commit
f38dc73fc9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue