PHP 클래스 Controller_Migrator_MySQL, atk4

$app->add('Controller_Migrator_MySQL'); or with a custom database:: $app->add('Controller_Migrator_MySQL', ['db'=> $dbcon]); Database migration statistics is stored in _db_update table which is created if necessary.
상속: extends AbstractController
파일 보기 프로젝트 열기: atk4/atk4

공개 프로퍼티들

프로퍼티 타입 설명
$db

공개 메소드들

메소드 설명
create ( ) Create necessary table in SQL for tracking progress.
getStatusModel ( ) Produces and returns a generic model you can supply to your Grid if you want show migration status.
init ( )
migrate ( ) Find migrations and execute them in order.

메소드 상세

create() 공개 메소드

Create necessary table in SQL for tracking progress.
public create ( )

getStatusModel() 공개 메소드

Produces and returns a generic model you can supply to your Grid if you want show migration status.
public getStatusModel ( )

init() 공개 메소드

public init ( )

migrate() 공개 메소드

.. warning:: Use ";" semicolon between full statements. If you leave empty statement between two semilocons MySQL ->exec() seems to fail.
public migrate ( )

프로퍼티 상세

$db 공개적으로 프로퍼티

public $db