Constants

DEFAULT_MIGRATION_TEMPLATE

DEFAULT_MIGRATION_TEMPLATE = '/../../phinx/src/Phinx/Migration/Migration.template.php.dist'

The location of the default migration template.

DEFAULT_SEED_TEMPLATE

DEFAULT_SEED_TEMPLATE = '/../../phinx/src/Phinx/Seed/Seed.template.php.dist'

The location of the default seed template.

Properties

Methods

bootstrap()

bootstrap(\think\console\Input  $input, \think\console\Output  $output) : void

Bootstrap Phinx.

Parameters

\think\console\Input $input
\think\console\Output $output

getConfig()

getConfig() : \Phinx\Config

Gets the config.

Returns

\Phinx\Config

configure()

configure() 

{@inheritdoc}

loadConfig()

loadConfig(\think\console\Input  $input, \think\console\Output  $output) : void

Parse the config file and load it into the config object

Parameters

\think\console\Input $input
\think\console\Output $output

Throws

\InvalidArgumentException

loadManager()

loadManager(\think\console\Output  $output) : void

Load the migrations manager and inject the config

Parameters

\think\console\Output $output

verifyMigrationDirectory()

verifyMigrationDirectory(  $path) 

Verify that the migration directory exists and is writable.

Parameters

$path

verifySeedDirectory()

verifySeedDirectory(  $path) 

Verify that the seed directory exists and is writable.

Parameters

$path

getMigrationTemplateFilename()

getMigrationTemplateFilename() : string

Returns the migration template filename.

Returns

string

getSeedTemplateFilename()

getSeedTemplateFilename() : string

Returns the seed template filename.

Returns

string