Migration
abstract class Migration
Base migration.
Traits
Container aware trait.
Properties
Methods
mixed
__get(string $key)
Resolves item from the container using overloading.
from ContainerAwareTrait
string|null
getConnectionName()
Returns the connection name.
getConnection()
Returns the chosen connection.
bool
useTransaction()
Should we execute this migration in a transaction?
string
getDescription()
Returns the migration description.
up()
Makes changes to the database structure.
down()
Reverts the database changes.
Details
in ContainerAwareTrait at line 66
setContainer(Container $container)
Sets the container instance.
in ContainerAwareTrait at line 77
mixed
__get(string $key)
Resolves item from the container using overloading.
at line 54
__construct(ConnectionManager $connectionManager)
Constructor.
at line 64
string|null
getConnectionName()
Returns the connection name.
at line 74
Connection
getConnection()
Returns the chosen connection.
at line 84
bool
useTransaction()
Should we execute this migration in a transaction?
at line 99
string
getDescription()
Returns the migration description.
at line 107
abstract
up()
Makes changes to the database structure.
at line 112
abstract
down()
Reverts the database changes.