/** * If we are going UP then log this version as executed, * if going DOWN then delete this version from our set of executed migrations. * * @param string $version The version desired * @param string $direction Up or Down * * @return string */ public function resolveCurrentVersion($version, $direction) { $direction = strtolower($direction); if ($direction === 'up') { $this->_adapter->setCurrentVersion($version); } if ($direction === 'down') { $this->_adapter->removeVersion($version); } return $version; }