\think\migration\commandMigrate

Summary

Methods
Properties
Constants
getAdapter()
__construct()
No public properties found
No constants found
getDbConfig()
getConfig()
verifyMigrationDirectory()
initialize()
getPath()
executeMigration()
getVersionLog()
getVersions()
getMigrations()
$config
$migrations
N/A
No private methods found
No private properties found
N/A

Properties

$config

$config : 

Type

$migrations

$migrations : array

Type

array

Methods

getAdapter()

getAdapter() 

__construct()

__construct(  $name = null) 

Parameters

$name

getDbConfig()

getDbConfig() : array

获取数据库配置

Returns

array

getConfig()

getConfig(  $name,   $default = null) 

Parameters

$name
$default

verifyMigrationDirectory()

verifyMigrationDirectory(  $path) 

Parameters

$path

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()