initial commit
This commit is contained in:
27
migrations-cli.php
Normal file
27
migrations-cli.php
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
use Doctrine\Migrations\Tools\Console\Command;
|
||||
use Symfony\Component\Console\Application;
|
||||
|
||||
$dependencyFactory = require 'migrations-config.php';
|
||||
|
||||
$cli = new Application('Doctrine Migrations');
|
||||
$cli->setCatchExceptions(true);
|
||||
|
||||
$cli->addCommands([
|
||||
new Command\DiffCommand($dependencyFactory),
|
||||
new Command\ExecuteCommand($dependencyFactory),
|
||||
new Command\GenerateCommand($dependencyFactory),
|
||||
new Command\LatestCommand($dependencyFactory),
|
||||
new Command\ListCommand($dependencyFactory),
|
||||
new Command\MigrateCommand($dependencyFactory),
|
||||
new Command\RollupCommand($dependencyFactory),
|
||||
new Command\StatusCommand($dependencyFactory),
|
||||
new Command\SyncMetadataCommand($dependencyFactory),
|
||||
new Command\VersionCommand($dependencyFactory),
|
||||
]);
|
||||
|
||||
$cli->run();
|
||||
Reference in New Issue
Block a user