Generate or migrate database changes via migrations.
- PHP >= 7.2
- Phalcon >= 4.0.0.rc-2
- PHP ext-posix
composer require --dev phalcon/migrations
use Phalcon\Migrations\Migrations;
$migration = new Migrations();
$migration::run([
'migrationsDir' => [
__DIR__ . '/migrations',
],
'config' => [
'database' => [
'adapter' => 'Mysql',
'host' => 'phalcon-db-mysql',
'username' => 'root',
'password' => 'root',
'dbname' => 'vokuro',
],
]
]);