protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->bootstrap($input, $output);
        $versions = $this->getAdapter()->fetchAll();
        $down = [];
        foreach($this->getMigrations() as $migration) {
            if (!in_array($migration->getVersion(), $versions)) {
                $down[] = $migration;
            }
        }

        if (!empty($down)) {
            $rows = [];
            foreach($down as $migration) {
                $status = '<error> DOWN </error>';
                $rows[] = [
                    $status, 
                    $migration->getVersion(), 
                    $migration->getName(), 
                    date('d M Y H:i:s', strtotime($migration->getVersion()))
                ];
            }

            $table = new Table($output);
            $table->setHeaders(array('Status', 'Migration ID', 'Migration Name', 'Created at'))
                ->setRows($rows)
            ;
            $table->render();
        }

        return 0;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->bootstrap($input, $output);
        $versions = $this->getAdapter()->fetchAll();
        $down = [];
        foreach($this->getMigrations() as $migration) {
            if (!in_array($migration->getVersion(), $versions)) {
                $down[] = $migration;
            }
        }

        if (!empty($down)) {
            $rows = [];
            foreach($down as $migration) {
                $status = '<error> DOWN </error>';
                $rows[] = [
                    $status, 
                    $migration->getVersion(), 
                    $migration->getName(), 
                    date('d M Y H:i:s', strtotime($migration->getVersion()))
                ];
            }

            $table = new Table($output);
            $table->setHeaders(array('Status', 'Migration ID', 'Migration Name', 'Created at'))
                ->setRows($rows)
            ;
            $table->render();
        }

        return 0;
    }
{@inheritdoc}