-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathdbdiff.php
More file actions
executable file
·36 lines (29 loc) · 1.08 KB
/
dbdiff.php
File metadata and controls
executable file
·36 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require __DIR__ . '/vendor/autoload.php';
use DBDiff\Migration\Command\DiffCommand;
use DBDiff\Migration\Command\MigrationNewCommand;
use DBDiff\Migration\Command\MigrationUpCommand;
use DBDiff\Migration\Command\MigrationDownCommand;
use DBDiff\Migration\Command\MigrationStatusCommand;
use DBDiff\Migration\Command\MigrationValidateCommand;
use DBDiff\Migration\Command\MigrationRepairCommand;
use DBDiff\Migration\Command\MigrationBaselineCommand;
use DBDiff\Migration\Command\UrlEncodeCommand;
use Symfony\Component\Console\Application;
$app = new Application('DBDiff', \DBDiff\VERSION);
$app->addCommands([
new DiffCommand,
new MigrationNewCommand,
new MigrationUpCommand,
new MigrationDownCommand,
new MigrationStatusCommand,
new MigrationValidateCommand,
new MigrationRepairCommand,
new MigrationBaselineCommand,
new UrlEncodeCommand,
]);
// Set `diff` as the default command so that the legacy
// dbdiff server1.db1:server2.db2 [options]
// invocation still works without explicitly typing `diff`.
$app->setDefaultCommand('diff');
$app->run();