_init()
current()
down()
latest()
up()
version()
_find_app()
_find_module()
_find_package()
_run()
find_migrations()
run()
table_version_check()
write_install()
write_revert()
$connection
$migrations
$prefix
$table
$table_definition
Migrate Class
package | Fuel |
---|---|
category | Migrations |
link | http://docs.fuelphp.com/classes/migrate.html |
_init() : void
current(string $name, string $type) : array
string
name of the package, module or app
string
type of migration (package, module or app)
array
down(mixed $version, string $name, string $type) : array
mixed
version to migrate down to
string
name of the package, module or app
string
type of migration (package, module or app)
array
latest(string $name, string $type, bool $all) : array
string
name of the package, module or app
string
type of migration (package, module or app)
bool
if true, also run out-of-sequence migrations
array
up(mixed $version, string $name, string $type) : array
mixed
version to migrate up to
string
name of the package, module or app
string
type of migration (package, module or app)
array
version(mixed $version, string $name, string $type, bool $all) : array
mixed
version to migrate to (up or down!)
string
name of the package, module or app
string
type of migration (package, module or app)
bool
if true, also run out-of-sequence migrations
\UnexpectedValueException |
---|
array
_find_app(string $name) : array
string
name of the app (not used at the moment)
array
_find_module(string $name) : array
string
name of the module
array
_find_package(string $name) : array
string
name of the package
array
_run($class, $method)
find_migrations(string $name, string $type, mixed $start, mixed $end, string $direction) : array
string
name of the package, module or app
string
type of migration (package, module or app)
mixed
version to start migrations from, or null to start at the beginning
mixed
version to end migrations by, or null to migrate to the end
string
\FuelException |
---|
array
run(array $migrations, string $name, string $type, string $method) : array
array
list of files to migrate
string
name of the package, module or app
string
type of migration (package, module or app)
string
method to call on the migration
array
table_version_check() : void
deprecated | Remove upgrade check in 1.4 |
---|
write_install(string $name, string $type, string $file) : void
string
name of the package, module or app
string
type of migration (package, module or app)
string
name of the migration file just run
write_revert(string $name, string $type, string $file) : void
string
name of the package, module or app
string
type of migration (package, module or app)
string
name of the migration file just run
$connection : string
$migrations : array
$prefix : string
$table : string
$table_definition : array