N98\Magento\Command\Database\Maintain\CheckTablesCommand::_queryAlterTable PHP Method

_queryAlterTable() protected method

protected _queryAlterTable ( string $tableName, string $engine ) : array
$tableName string
$engine string
return array
    protected function _queryAlterTable($tableName, $engine)
    {
        /** @var \PDO $connection */
        $connection = $this->dbHelper->getConnection($this->output);
        $start = microtime(true);
        $affectedRows = $connection->exec(sprintf('ALTER TABLE %s ENGINE=%s', $tableName, $engine));
        return array(array('table' => $tableName, 'operation' => 'ENGINE ' . $engine, 'type' => sprintf('%15s rows', (string) $affectedRows), 'status' => sprintf('%.3f secs', microtime(true) - $start)));
    }