public function SiteAuditCheckDatabaseCollation::getAction in Site Audit 7
Same name and namespace in other branches
- 8.2 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;',
));
}
}