/** * Copy sql script * @param string $fromFile * @param string $module * @return boolean */ protected function copySqlScript($fromFile, $module) { $baseName = $this->getSqlScriptBaseName($fromFile, $module); if ($this->sqlScriptExists($baseName)) { return true; } $toFile = $this->dbDir . '/' . $this->getNextSqlNum() . '-' . $baseName; if (!copy($fromFile, $toFile)) { $this->io->writeError("Error copying [{$fromFile}]"); return false; } return true; }