Files
paid4click_advanced/migrations-cli.php
2025-10-06 23:52:38 +02:00

28 lines
844 B
PHP

#!/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();