KickstartForm: add 'UTF8' to array of allowed charsets, to support Postgres

Followup to eae7a8ab86

UTF8 without a dash is the proper encoding shown by psql -c '\l'
This commit is contained in:
Pascal de Bruijn 2020-06-22 10:24:46 +02:00 committed by Thomas Gelf
parent 6957035f93
commit 9f7568c0ea
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class KickstartForm extends DirectorForm
if ($resourceName = $this->getResourceName()) {
$resourceConfig = ResourceFactory::getResourceConfig($resourceName);
if (! isset($resourceConfig->charset)
|| ! in_array($resourceConfig->charset, array('utf8', 'utf8mb4', 'UTF-8'))
|| ! in_array($resourceConfig->charset, array('utf8', 'utf8mb4', 'UTF8', 'UTF-8'))
) {
if ($resource = $this->getElement('resource')) {
$resource->addError('Please change the encoding for the director database to utf8');