system/Commands/Database/MigrateCurrent.php
public function run(array $params = [])
	{
		$runner = Services::migrations();

		CLI::write(lang('Migrations.toVersion'), 'yellow');

		$group = $params['-g'] ?? CLI::getOption('g');
		try
		{
			$runner->current($group);
			$messages = $runner->getCliMessages();
			foreach ($messages as $message)
			{
				CLI::write($message);
			}

			CLI::write('Done');
		}
		catch (\Exception $e)
		{
			$this->showError($e);
		}
	}
public function run(array $params = [])
	{
		$runner = Services::migrations();

		CLI::write(lang('Migrations.toVersion'), 'yellow');

		$group = $params['-g'] ?? CLI::getOption('g');
		try
		{
			$runner->current($group);
			$messages = $runner->getCliMessages();
			foreach ($messages as $message)
			{
				CLI::write($message);
			}

			CLI::write('Done');
		}
		catch (\Exception $e)
		{
			$this->showError($e);
		}
	}
Migrates us up or down to the version specified as $currentVersion
in the migrations config file.

@param array $params