AbstractMigration
class AbstractMigration (View source)
The AbstractMigration class.
Constants
UP |
|
DOWN |
|
Methods
__construct(AbstractCommand $command, AbstractDatabaseDriver $db)
Class init.
void
up()
up
void
down()
down
AbstractTable
getTable(string $name)
Get DB table object.
AbstractTable
createTable(string $name, callable $callback, bool $ifNotExists = true, array $options = array())
createTable
AbstractTable
updateTable(string $name, callable $callback)
updateTable
AbstractTable
saveTable(string $name, callable $callback, bool $ifNotExists = true, array $options = array())
saveTable
drop(string $name)
Drop a table.
AbstractDatabaseDriver
getDb()
Method to get property Db
setDb(AbstractDatabaseDriver $db)
Method to set property db
AbstractCommand
getCommand()
Method to get property Command
setCommand(AbstractCommand $command)
Method to set property command
string
getVersion()
Method to get property Version
setVersion(string $version)
Method to set property version
Details
at line line 52
__construct(AbstractCommand $command, AbstractDatabaseDriver $db)
Class init.
at line line 64
abstract void
up()
up
at line line 71
abstract void
down()
down
at line line 80
AbstractTable
getTable(string $name)
Get DB table object.
at line line 95
AbstractTable
createTable(string $name, callable $callback, bool $ifNotExists = true, array $options = array())
createTable
at line line 108
AbstractTable
updateTable(string $name, callable $callback)
updateTable
at line line 123
AbstractTable
saveTable(string $name, callable $callback, bool $ifNotExists = true, array $options = array())
saveTable
at line line 135
AbstractMigration
drop(string $name)
Drop a table.
at line line 147
AbstractDatabaseDriver
getDb()
Method to get property Db
at line line 159
AbstractMigration
setDb(AbstractDatabaseDriver $db)
Method to set property db
at line line 171
AbstractCommand
getCommand()
Method to get property Command
at line line 183
AbstractMigration
setCommand(AbstractCommand $command)
Method to set property command
at line line 195
string
getVersion()
Method to get property Version
at line line 207
AbstractMigration
setVersion(string $version)
Method to set property version