phpBB

Code Changes

File: phpbb/db/migrator.php

  Unmodified   Added   Modified   Removed
Line 339Line 339
			$depend = $this->get_valid_name($depend);

// Test all possible namings before throwing exception

			$depend = $this->get_valid_name($depend);

// Test all possible namings before throwing exception

			if ($this->unfulfillable($depend) !== false)


			$missing = $this->unfulfillable($depend);
if ($missing !== false)

			{

			{

				throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $depend);

				throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $missing);

			}

if (!isset($this->migration_state[$depend]) ||

			}

if (!isset($this->migration_state[$depend]) ||

Line 948Line 949
	* @param string $name Name of the migration
* @return \phpbb\db\migration\migration
*/

	* @param string $name Name of the migration
* @return \phpbb\db\migration\migration
*/

	protected function get_migration($name)

	public function get_migration($name)

	{
$migration = new $name($this->config, $this->db, $this->db_tools, $this->phpbb_root_path, $this->php_ext, $this->table_prefix);


	{
$migration = new $name($this->config, $this->db, $this->db_tools, $this->phpbb_root_path, $this->php_ext, $this->table_prefix);