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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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