src/bundles/Database/Migrator.php
public static function path( $name, $time = null )
	{
		if ( is_null( $time ) )
		{
			$time = time();
		}
		
		$namespace = null;
		
		if ( strpos( $name, '::' ) !== false )
		{
			list( $namespace, $name ) = explode( '::', $name );
		}
		
		$name = explode( '/', $name );
		
		foreach( $name as $key => $value )
		{
			$name[$key] = \CCStr::clean_url( $value, '_' );
		}
		
		$name = implode( '/', $name );
		
		return \CCPath::get( ( $namespace ? $namespace.'::' : '' ) .$name.'_'.$time, \ClanCats::directory( 'migration' ), '.sql' );
	}
public static function path( $name, $time = null )
	{
		if ( is_null( $time ) )
		{
			$time = time();
		}
		
		$namespace = null;
		
		if ( strpos( $name, '::' ) !== false )
		{
			list( $namespace, $name ) = explode( '::', $name );
		}
		
		$name = explode( '/', $name );
		
		foreach( $name as $key => $value )
		{
			$name[$key] = \CCStr::clean_url( $value, '_' );
		}
		
		$name = implode( '/', $name );
		
		return \CCPath::get( ( $namespace ? $namespace.'::' : '' ) .$name.'_'.$time, \ClanCats::directory( 'migration' ), '.sql' );
	}
public static function path ( $ name , $ time = null ) { if ( is_null ( $ time ) ) { $ time = time ( ) ; } $ namespace = null ; if ( strpos ( $ name , '::' ) !== false ) { list ( $ namespace , $ name ) = explode ( '::' , $ name ) ; } $ name = explode ( '/' , $ name ) ; foreach ( $ name as $ key => $ value ) { $ name [ $ key ] = \ CCStr :: clean_url ( $ value , '_' ) ; } $ name = implode ( '/' , $ name ) ; return \ CCPath :: get ( ( $ namespace ? $ namespace . '::' : '' ) . $ name . '_' . $ time , \ ClanCats :: directory ( 'migration' ) , '.sql' ) ; }
Get a migration path by name

@param string 		$name
@return string
Get a migration path by name