src/Console/MigrateUpCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $options = [
            'step' => $input->getOption('step')
        ];

        $migrate = Migrate::new($input->getOption('dsn'), $input->getOption('path'), $output);

        if ($input->getOption('drop')) {
            $migrate->drop();
        }

        $migrate
            ->install()
            ->run($options)
            ->close();

        if ($input->getOption('seed')) {
            $this->getSeed($input, $output)
                 ->run()
                 ->close();
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $options = [
            'step' => $input->getOption('step')
        ];

        $migrate = Migrate::new($input->getOption('dsn'), $input->getOption('path'), $output);

        if ($input->getOption('drop')) {
            $migrate->drop();
        }

        $migrate
            ->install()
            ->run($options)
            ->close();

        if ($input->getOption('seed')) {
            $this->getSeed($input, $output)
                 ->run()
                 ->close();
        }
    }
Execute command, captain.

@param \Symfony\Component\Console\Input\InputInterface $input
@param \Symfony\Component\Console\Output\OutputInterface $output
@return int|null|void
@throws \Invoker\Exception\InvocationException
@throws \Invoker\Exception\NotCallableException
@throws \Invoker\Exception\NotEnoughParametersException
@throws \League\Flysystem\FileNotFoundException