2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -721,7 +721,7 @@ public function changeField($table, $field, $field_new, $spec, $new_keys = array
// Convert to a bytea type by using the SQL replace() function to
// convert any single backslashes in the field content to double
// backslashes ('\' to '\\').
$this->connection->query('ALTER TABLE {'.$table.'} ALTER "'.$field.'" TYPE '.$field_def.' USING decode(replace("'.$field.'"'.", '\\', '\\\\'), 'escape');");
$this->connection->query('ALTER TABLE {'.$table.'} ALTER "'.$field.'" TYPE '.$field_def.' USING convert_to("'.$field.'", '."'UTF8')");