src/Database/Migration/Generator/MySqlGenerator.php
protected function getAlterDatabaseCollate($collate, $database = null)
    {
        if ($database) {
            $database = ' ' . $this->dba->ident($database);
        }
        $collate = $this->dba->quote($collate);

        return sprintf("%s\$this->execute(\"ALTER DATABASE%s COLLATE=%s;\");", $this->ind2, $database, $collate);
    }
protected function getAlterDatabaseCollate($collate, $database = null)
    {
        if ($database) {
            $database = ' ' . $this->dba->ident($database);
        }
        $collate = $this->dba->quote($collate);

        return sprintf("%s\$this->execute(\"ALTER DATABASE%s COLLATE=%s;\");", $this->ind2, $database, $collate);
    }
protected function getAlterDatabaseCollate ( $ collate , $ database = null ) { if ( $ database ) { $ database = ' ' . $ this -> dba -> ident ( $ database ) ; } $ collate = $ this -> dba -> quote ( $ collate ) ; return sprintf ( "%s\$this->execute(\"ALTER DATABASE%s COLLATE=%s;\");" , $ this -> ind2 , $ database , $ collate ) ; }
Generate alter database collate.

@param string $collate
@param string $database

@return string
Generate alter database collate .