PHP 클래스 LazyRecord\Migration\MigrationRunner

파일 보기 프로젝트 열기: corneltek/lazyrecord 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connectionManager
$dataSourceIds
$logger

공개 메소드들

메소드 설명
__construct ( CLIFramework\Logger $logger = null, $dsIds )
getDowngradeScripts ( Connection $conn, BaseDriver $driver )
getLastMigrationId ( Connection $conn, BaseDriver $driver )
getUpgradeScripts ( Connection $conn, BaseDriver $driver ) Each data source has it's own migration timestamp, we use the data source ID to get the migration timestamp and filter the migration script.
load ( $directory ) Load migration script from specific directory.
loadMigrationScripts ( )
resetMigrationId ( Connection $conn, BaseDriver $driver )
runDowngrade ( Connection $conn, BaseDriver $driver, array $scripts = null, $steps = 1 ) Run downgrade scripts.
runUpgrade ( Connection $conn, BaseDriver $driver, array $scripts = null ) Run upgrade scripts.
runUpgradeAutomatically ( Connection $conn, BaseDriver $driver, array $schemas, OptionResult $options = null )
updateLastMigrationId ( Connection $conn, BaseDriver $driver, $id )

메소드 상세

__construct() 공개 메소드

public __construct ( CLIFramework\Logger $logger = null, $dsIds )
$logger CLIFramework\Logger

getDowngradeScripts() 공개 메소드

public getDowngradeScripts ( Connection $conn, BaseDriver $driver )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver

getLastMigrationId() 공개 메소드

public getLastMigrationId ( Connection $conn, BaseDriver $driver )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver

getUpgradeScripts() 공개 메소드

Each data source has it's own migration timestamp, we use the data source ID to get the migration timestamp and filter the migration script.
public getUpgradeScripts ( Connection $conn, BaseDriver $driver )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver

load() 공개 메소드

Load migration script from specific directory.
public load ( $directory )

loadMigrationScripts() 공개 메소드

resetMigrationId() 공개 메소드

public resetMigrationId ( Connection $conn, BaseDriver $driver )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver

runDowngrade() 공개 메소드

Run downgrade scripts.
public runDowngrade ( Connection $conn, BaseDriver $driver, array $scripts = null, $steps = 1 )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver
$scripts array

runUpgrade() 공개 메소드

Run upgrade scripts.
public runUpgrade ( Connection $conn, BaseDriver $driver, array $scripts = null )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver
$scripts array

runUpgradeAutomatically() 공개 메소드

public runUpgradeAutomatically ( Connection $conn, BaseDriver $driver, array $schemas, OptionResult $options = null )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver
$schemas array
$options GetOptionKit\OptionResult

updateLastMigrationId() 공개 메소드

public updateLastMigrationId ( Connection $conn, BaseDriver $driver, $id )
$conn LazyRecord\Connection
$driver SQLBuilder\Driver\BaseDriver

프로퍼티 상세

$connectionManager 보호되어 있는 프로퍼티

protected $connectionManager

$dataSourceIds 보호되어 있는 프로퍼티

protected $dataSourceIds

$logger 보호되어 있는 프로퍼티

protected $logger