You are here

public function SiteAuditCheckDatabaseCollation::getAction in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Database/Collation.php \SiteAuditCheckDatabaseCollation::getAction()

Implements \SiteAudit\Check\Abstract\getAction().

Overrides SiteAuditCheckAbstract::getAction

File

Check/Database/Collation.php, line 82
Contains \SiteAudit\Check\Database\Collation.

Class

SiteAuditCheckDatabaseCollation
Class SiteAuditCheckDatabaseCollation.

Code

public function getAction() {
  if ($this
    ->getScore() == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
    return dt('In MySQL, use the command "!command" to convert the affected tables. Of course, test first and ensure your data will not be negatively affected.', array(
      '!command' => 'ALTER TABLE table_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;',
    ));
  }
}