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

        return sprintf("%s\$this->execute(\"ALTER DATABASE%s CHARACTER SET %s;\");", $this->ind2, $database, $charset);
    }
protected function getAlterDatabaseCharset($charset, $database = null)
    {
        if ($database !== null) {
            $database = ' ' . $this->dba->ident($database);
        }
        $charset = $this->dba->quote($charset);

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

@param string $charset
@param string $database

@return string
Generate alter database charset .