fuel/fuel/core/classes/migrate.php
public static function current($name = 'default', $type = 'app')
	{
		// get the current version from the config
		$current = \Config::get('migrations.version.'.$type.'.'.$name);

		// any migrations defined?
		if ( ! empty($current))
		{
			// get the timestamp of the last installed migration
			if (preg_match('/^(.*?)_(.*)$/', end($current), $match))
			{
				// run migrations from start to current version
				return static::run(static::find_migrations($name, $type, null, $match[1]), $name, $type, 'up');
			}
		}

		// nothing to migrate
		return array();
	}
public static function current($name = 'default', $type = 'app')
	{
		// get the current version from the config
		$current = \Config::get('migrations.version.'.$type.'.'.$name);

		// any migrations defined?
		if ( ! empty($current))
		{
			// get the timestamp of the last installed migration
			if (preg_match('/^(.*?)_(.*)$/', end($current), $match))
			{
				// run migrations from start to current version
				return static::run(static::find_migrations($name, $type, null, $match[1]), $name, $type, 'up');
			}
		}

		// nothing to migrate
		return array();
	}
public static function current ( $ name = 'default' , $ type = 'app' ) { // get the current version from the config $ current = \ Config :: get ( 'migrations.version.' . $ type . '.' . $ name ) ; // any migrations defined? if ( ! empty ( $ current ) ) { // get the timestamp of the last installed migration if ( preg_match ( '/^(.*?)_(.*)$/' , end ( $ current ) , $ match ) ) { // run migrations from start to current version return static :: run ( static :: find_migrations ( $ name , $ type , null , $ match [ 1 ] ) , $ name , $ type , 'up' ) ; } } // nothing to migrate return array ( ) ; }
migrate to the version defined in the config file

@param   string  name of the package, module or app
@param   string  type of migration (package, module or app)

@return	array
migrate to the version defined in the config file