FsDbMigrationInfo
in package
implements
DbMigrationInfo
Table of Contents
Interfaces
- DbMigrationInfo
- Information on a migration repository item.
Methods
- __construct() : mixed
- getClassName() : string
- Returns the class name of the migration.
- getName() : string
- Returns the name of the migration.
- migrate() : void
- Creates an instance of the underlying migration and runs it. This process is irreversible!
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
-
Filesystem path to the migration file.
getClassName()
Returns the class name of the migration.
public
getClassName() : string
Return values
string —Migration class name.
getName()
Returns the name of the migration.
public
getName() : string
Return values
string —Migration name.
migrate()
Creates an instance of the underlying migration and runs it. This process is irreversible!
public
migrate(DbConnection $conn) : void
Parameters
- $conn : DbConnection
-
Database connection to execute this migration on.