protected function regressDatabase() { if ($this->migrate === false
) { return;
} // If no namespace was specified then rollback all
if (empty($this->namespace
)) { $this->migrations->
setNamespace(null
);
$this->migrations->
regress(0, 'tests'
);
} // Regress each specified namespace
else { $namespaces =
is_array($this->namespace
) ?
$this->namespace :
[$this->namespace
];
foreach ($namespaces as $namespace) { $this->migrations->
setNamespace($namespace);
$this->migrations->
regress(0, 'tests'
);
} } }