- π©πͺGermany rhiss
Hello @ll, thanks for the effort and discussion so far. I have the joy of updateing an old Drupal 8.6.1, in times of Drupal 11, and also came to this issue, hopefully the last one ever, but just in case:
drupal/web/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php -> renameTable()public function renameTable($table, $new_name) { if (!$this->tableExists($table)) { $this->connection->schema()->dropTable($table); // throw new SchemaObjectDoesNotExistException("Cannot rename '$table' to '$new_name': table '$table' doesn't exist."); } if ($this->tableExists($new_name)) { $this->connection->schema()->dropTable($new_name); // throw new SchemaObjectExistsException("Cannot rename '$table' to '$new_name': table '$new_name' already exists."); } $info = $this->getPrefixInfo($new_name); $this->connection->query('ALTER TABLE {' . $table . '} RENAME TO `' . $info['table'] . '`'); }