PHP Class Flarum\Console\Command\GenerateMigrationCommand

Inheritance: extends AbstractCommand
Mostra file Open project: flarum/core

Protected Properties

Property Type Description
$creator Flarum\Database\MigrationCreator

Public Methods

Method Description
__construct ( MigrationCreator $creator )

Protected Methods

Method Description
configure ( )
fire ( )
writeMigration ( string $name, string $extension, string $table, boolean $create ) : string Write the migration file to disk.

Method Details

__construct() public method

public __construct ( MigrationCreator $creator )
$creator Flarum\Database\MigrationCreator

configure() protected method

protected configure ( )

fire() protected method

protected fire ( )

writeMigration() protected method

Write the migration file to disk.
protected writeMigration ( string $name, string $extension, string $table, boolean $create ) : string
$name string
$extension string
$table string
$create boolean
return string

Property Details

$creator protected_oe property

protected MigrationCreator,Flarum\Database $creator
return Flarum\Database\MigrationCreator