EXIT_STATUS_DOWN
EXIT_STATUS_DOWN = 1 : integer
$config : \Phinx\Config
$adapter : \Phinx\Db\Adapter\AdapterInterface
__construct(\Phinx\Config $config, \think\console\Output $output)
Class Constructor.
\Phinx\Config | $config | Configuration Object |
\think\console\Output | $output | Console Output |
executeMigration(\Phinx\Migration\MigrationInterface $migration, string $direction = \Phinx\Migration\MigrationInterface::UP) : void
Execute a migration against the specified environment.
\Phinx\Migration\MigrationInterface | $migration | Migration |
string | $direction | Direction |
executeSeed(\Phinx\Seed\SeedInterface $seed) : void
Execute a seeder against the specified environment.
\Phinx\Seed\SeedInterface | $seed | Seed |
setOutput(\think\console\Output $output) : \Phinx\Migration\Manager
Sets the console output.
\think\console\Output | $output | Output |
setMigrations(array $migrations) : \Phinx\Migration\Manager
Sets the database migrations.
array | $migrations | Migrations |
getMigrations() : array<mixed,\Phinx\Migration\AbstractMigration>
Gets an array of the database migrations.
setSeeds(array $seeds) : \Phinx\Migration\Manager
Sets the database seeders.
array | $seeds | Seeders |
getSeeds() : array<mixed,\Phinx\Seed\AbstractSeed>
Gets an array of database seeders.
setConfig(\Phinx\Config $config) : \Phinx\Migration\Manager
Sets the config.
\Phinx\Config | $config | Configuration Object |
getConfig() : \Phinx\Config
Gets the config.
setAdapter(\Phinx\Db\Adapter\AdapterInterface $adapter) : \Phinx\Migration\Manager\Environment
Sets the database adapter.
\Phinx\Db\Adapter\AdapterInterface | $adapter | Database Adapter |
getAdapter() : \Phinx\Db\Adapter\AdapterInterface
Gets the database adapter.