fuel/fuel/core/classes/migrate.php
protected static function run($migrations, $name, $type, $method = 'up')
	{
		// storage for installed migrations
		$done = array();

		static::$connection === null or \DBUtil::set_connection(static::$connection);

		// Loop through the runnable migrations and run them
		foreach ($migrations as $ver => $migration)
		{
			logger(Fuel::L_INFO, 'Migrating to version: '.$ver);
			$result = call_user_func(array(new $migration['class'], $method));
			if ($result === false)
			{
				logger(Fuel::L_INFO, 'Skipped migration to '.$ver.'.');
				return false;
			}

			$file = basename($migration['path'], '.php');
			$method == 'up' ? static::write_install($name, $type, $file) : static::write_revert($name, $type, $file);
			$done[] = $file;
		}

		static::$connection === null or \DBUtil::set_connection(null);

		empty($done) or logger(Fuel::L_INFO, 'Migrated to '.$ver.' successfully.');

		return $done;
	}
protected static function run($migrations, $name, $type, $method = 'up')
	{
		// storage for installed migrations
		$done = array();

		static::$connection === null or \DBUtil::set_connection(static::$connection);

		// Loop through the runnable migrations and run them
		foreach ($migrations as $ver => $migration)
		{
			logger(Fuel::L_INFO, 'Migrating to version: '.$ver);
			$result = call_user_func(array(new $migration['class'], $method));
			if ($result === false)
			{
				logger(Fuel::L_INFO, 'Skipped migration to '.$ver.'.');
				return false;
			}

			$file = basename($migration['path'], '.php');
			$method == 'up' ? static::write_install($name, $type, $file) : static::write_revert($name, $type, $file);
			$done[] = $file;
		}

		static::$connection === null or \DBUtil::set_connection(null);

		empty($done) or logger(Fuel::L_INFO, 'Migrated to '.$ver.' successfully.');

		return $done;
	}
protected static function run ( $ migrations , $ name , $ type , $ method = 'up' ) { // storage for installed migrations $ done = array ( ) ; static :: $ connection === null or \ DBUtil :: set_connection ( static :: $ connection ) ; // Loop through the runnable migrations and run them foreach ( $ migrations as $ ver => $ migration ) { logger ( Fuel :: L_INFO , 'Migrating to version: ' . $ ver ) ; $ result = call_user_func ( array ( new $ migration [ 'class' ] , $ method ) ) ; if ( $ result === false ) { logger ( Fuel :: L_INFO , 'Skipped migration to ' . $ ver . '.' ) ; return false ; } $ file = basename ( $ migration [ 'path' ] , '.php' ) ; $ method == 'up' ? static :: write_install ( $ name , $ type , $ file ) : static :: write_revert ( $ name , $ type , $ file ) ; $ done [ ] = $ file ; } static :: $ connection === null or \ DBUtil :: set_connection ( null ) ; empty ( $ done ) or logger ( Fuel :: L_INFO , 'Migrated to ' . $ ver . ' successfully.' ) ; return $ done ; }
run the action migrations found

@param   array	list of files to migrate
@param   string  name of the package, module or app
@param   string  type of migration (package, module or app)
@param   string  method to call on the migration

@return	array
run the action migrations found