N98\Magento\Command\System\Setup\IncrementalCommand::_runStructureOrDataScripts PHP Method

_runStructureOrDataScripts() protected method

protected _runStructureOrDataScripts ( string $toUpdate, array $needsUpdate, string $type )
$toUpdate string
$needsUpdate array
$type string
    protected function _runStructureOrDataScripts($toUpdate, array $needsUpdate, $type)
    {
        $output = $this->_output;
        $output->writeln('The next ' . $type . ' update to run is <info>' . $toUpdate . '</info>');
        $this->getHelper('dialog')->askAndValidate($output, '<question>Press Enter to Run this update: </question>');
        $start = microtime(true);
        $this->_runNamedSetupResource($toUpdate, $needsUpdate, $type);
        $time_ran = microtime(true) - $start;
        $output->writeln('');
        $output->writeln(ucwords($type) . ' update <info>' . $toUpdate . '</info> complete.');
        $output->writeln('Ran in ' . floor($time_ran * 1000) . 'ms');
    }