-
Notifications
You must be signed in to change notification settings - Fork 1
/
migrate.php
executable file
·33 lines (29 loc) · 1.11 KB
/
migrate.php
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
<?php
// application.php
require 'vendor/autoload.php';
// use Helpers\Commands\CreateActionCommand;
// use Helpers\Commands\CreateMiddlewareCommand;
// use Helpers\Commands\CreateModelCommand;
// use Helpers\Commands\CreateScaffoldCommand;
// use Helpers\Commands\MigrationGeneratorCommand;
use Phpmig\Console\Command;
use Symfony\Component\Console\Helper\DialogHelper;
use Symfony\Component\Console\Application;
$application = new Application();
// $application->add(new CreateActionCommand());
// $application->add(new CreateMiddlewareCommand());
// $application->add(new CreateModelCommand());
// $application->add(new CreateScaffoldCommand());
// $application->add(new MigrationGeneratorCommand());
$application->addCommands(array(
new Command\InitCommand(),
new Command\StatusCommand(),
new Command\CheckCommand(),
new Command\GenerateCommand(),
new Command\UpCommand(),
new Command\DownCommand(),
new Command\MigrateCommand(),
new Command\RollbackCommand(),
new Command\RedoCommand()
));
$application->run();