diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php index f3cc3ff..c66330f 100644 --- a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php @@ -500,8 +500,6 @@ public function addIndex($table, $name, $fields, array $spec) { $spec['indexes'][$name] = $fields; $indexes = $this->getNormalizedIndexes($spec); - $this->validateIndex($table, $name); - $this->connection->query('ALTER TABLE {' . $table . '} ADD INDEX `' . $name . '` (' . $this->createKeySql($indexes[$name]) . ')'); } diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php index 221e5bf..fc46542 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php @@ -649,7 +649,6 @@ public function addIndex($table, $name, $fields, array $spec) { } $spec['indexes'][$name] = $fields; - $this->validateIndex($table, $name); $this->connection->query($this->_createIndexSql($table, $name, $fields)); $this->resetTableInformation($table); diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php index 9ef0750..cf19c48 100644 --- a/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php @@ -594,7 +594,6 @@ public function addIndex($table, $name, $fields, array $spec) { } $spec['indexes'][$name] = $fields; - $this->validateIndex($table, $name); $statements = $this->createIndexSql($table, $spec); foreach ($statements as $statement) {