Properties

$migrations

$migrations : array

Type

array

$config

$config : 

Type

Methods

__construct()

__construct(  $name = null) 

Parameters

$name

getAdapter()

getAdapter() 

initialize()

initialize(\think\console\Input  $input, \think\console\Output  $output) 

初始化

Parameters

\think\console\Input $input

An InputInterface instance

\think\console\Output $output

An OutputInterface instance

getPath()

getPath() 

executeMigration()

executeMigration(\Phinx\Migration\MigrationInterface  $migration,   $direction = \Phinx\Migration\MigrationInterface::UP) 

Parameters

\Phinx\Migration\MigrationInterface $migration
$direction

getVersionLog()

getVersionLog() 

getVersions()

getVersions() 

getMigrations()

getMigrations() 

getDbConfig()

getDbConfig() : array

获取数据库配置

Returns

array

getConfig()

getConfig(  $name,   $default = null) 

Parameters

$name
$default

verifyMigrationDirectory()

verifyMigrationDirectory(  $path) 

Parameters

$path

configure()

configure() 

{@inheritdoc}

execute()

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

Create the new migration.

Parameters

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

Throws

\RuntimeException
\InvalidArgumentException

getTemplate()

getTemplate()