Documentation

Updater
in package

Database updater

Executes database migration and seed scripts based on their filename.

Tags
author

Alexey Bobkov, Samuel Georges

Table of Contents

getClassFromFile()  : string
Extracts the namespace and class name from a file.
packDown()  : mixed
Packs down a migration or seed file.
resolve()  : object
Resolve a migration instance from a file.
setUp()  : mixed
Sets up a migration or seed file.
isValidScript()  : mixed
Checks if the object is a valid update script.

Methods

getClassFromFile()

Extracts the namespace and class name from a file.

public getClassFromFile(string $file) : string
Parameters
$file : string
Return values
string

packDown()

Packs down a migration or seed file.

public packDown(mixed $file) : mixed
Parameters
$file : mixed
Return values
mixed

resolve()

Resolve a migration instance from a file.

public resolve(string $file) : object
Parameters
$file : string
Return values
object

setUp()

Sets up a migration or seed file.

public setUp(mixed $file) : mixed
Parameters
$file : mixed
Return values
mixed

isValidScript()

Checks if the object is a valid update script.

protected isValidScript(mixed $object) : mixed
Parameters
$object : mixed
Return values
mixed

Search results