phpBB

Code Changes

File: phpbb/db/migrator.php

  Unmodified   Added   Modified   Removed
Line 503Line 503
			return;
}


			return;
}


		foreach ($this->migration_state as $name => $state)

		foreach ($this->migrations as $name)

		{

		{

			if (!empty($state['migration_depends_on']) && in_array($migration, $state['migration_depends_on']))



			$state = $this->migration_state($name);

if ($state && in_array($migration, $state['migration_depends_on']) && ($state['migration_schema_done'] || $state['migration_data_done']))

			{
$this->revert_do($name);

			{
$this->revert_do($name);

 
				return;

			}
}


			}
}


Line 629Line 632
	*/
protected function process_data_step($steps, $state, $revert = false)
{

	*/
protected function process_data_step($steps, $state, $revert = false)
{

		if (sizeof($steps) === 0)

		if (count($steps) === 0)

		{
return true;
}

		{
return true;
}

Line 656Line 659
			// Result will be null or true if everything completed correctly
// Stop after each update step, to let the updater control the script runtime
$result = $this->run_step($steps[$step], $last_result, $revert);

			// Result will be null or true if everything completed correctly
// Stop after each update step, to let the updater control the script runtime
$result = $this->run_step($steps[$step], $last_result, $revert);

			if (($result !== null && $result !== true) || $step + 1 < sizeof($steps))

			if (($result !== null && $result !== true) || $step + 1 < count($steps))

			{
return array(
'result' => $result,

			{
return array(
'result' => $result,