Method |
Description |
|
__construct ( Module $module ) |
Create new instance. |
|
down ( string $migration ) |
Run down schema from the given migration name. |
|
find ( string $migration ) : object |
Find migration data from database by given migration name. |
|
getLast ( array $migrations ) : Collection |
Get the last migration batch. |
|
getLastBatchNumber ( array $migrations ) : integer |
Get the last migration batch number. |
|
getMigrations ( boolean $reverse = false ) : array |
Get migration files. |
|
getModule ( ) : Module |
|
|
getNextBatchNumber ( ) : integer |
Get the next migration batch number. |
|
getPath ( ) : string |
Get migration path. |
|
getRan ( ) : Collection |
Get the ran migrations. |
|
log ( string $migration ) : mixed |
Save new migration to database. |
|
requireFiles ( array $files ) |
Require in all the migration files in a given path. |
|
reset ( ) : array |
Reset migration. |
|
resolve ( string $file ) : object |
Resolve a migration instance from a file. |
|
rollback ( ) : array |
Rollback migration. |
|
setDatabase ( $database ) |
Set the database connection to be used |
|
table ( ) : string |
Get table instance. |
|
up ( string $migration ) |
Run up schema from the given migration name. |
|