protected function importSqlFile($file)
    {
        if (!is_null($file)) {
            $this->output->writeLn("Applying migration for <info>$file</info>");
            $command = sprintf("%s db import %s", $this->getWpCliPath(), $file);
            system($command);
            return;
        }

        $this->output->writeLn("<error>We could not find a valid SQL file.</error>");
    }
protected function importSqlFile($file)
    {
        if (!is_null($file)) {
            $this->output->writeLn("Applying migration for <info>$file</info>");
            $command = sprintf("%s db import %s", $this->getWpCliPath(), $file);
            system($command);
            return;
        }

        $this->output->writeLn("<error>We could not find a valid SQL file.</error>");
    }
protected function importSqlFile ( $ file ) { if ( ! is_null ( $ file ) ) { $ this -> output -> writeLn ( "Applying migration for <info>$file</info>" ) ; $ command = sprintf ( "%s db import %s" , $ this -> getWpCliPath ( ) , $ file ) ; system ( $ command ) ; return ; } $ this -> output -> writeLn ( "<error>We could not find a valid SQL file.</error>" ) ; }
Imports an .sql file to the current environment's database.
@todo Ensure this works in an outside of Vagrant.
Imports an . sql file to the current environment s database .