You are here

public function DatabaseCollation::getAction in Site Audit 8.3

.

Overrides SiteAuditCheckBase::getAction

File

src/Plugin/SiteAuditCheck/DatabaseCollation.php, line 77

Class

DatabaseCollation
Provides the CronLast Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

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