*/
public function up($targetVersion = null)
{
- if (!is_null($targetVersion)) {
- $this->_targetVersion = $targetVersion;
- }
+ $this->_targetVersion = $targetVersion;
$this->_direction = 'up';
$this->_doMigrate();
}
*/
public function down($targetVersion = null)
{
- if (!is_null($targetVersion)) {
- $this->_targetVersion = $targetVersion;
- }
+ $this->_targetVersion = $targetVersion;
$this->_direction = 'down';
$this->_doMigrate();
}
return ($this->_isUp() && $version <= self::getCurrentVersion()) ||
($this->_isDown() && $version > self::getCurrentVersion());
}
-
}