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:
parent
6957035f93
commit
9f7568c0ea
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue