initial commit

This commit is contained in:
greggy
2025-10-06 23:52:38 +02:00
parent ad46abd2ba
commit ba8483bec2
17 changed files with 505 additions and 92 deletions

27
migrations-cli.php Normal file
View 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();