MDL-46918 ddl: fix error when renaming table already exists
This commit is contained in:
@@ -502,7 +502,7 @@ class database_manager {
|
||||
|
||||
// Check new table doesn't exist
|
||||
if ($this->table_exists($check)) {
|
||||
throw new ddl_exception('ddltablealreadyexists', $xmldb_table->getName(), 'can not rename table');
|
||||
throw new ddl_exception('ddltablealreadyexists', $check->getName(), 'can not rename table');
|
||||
}
|
||||
|
||||
if (!$sqlarr = $this->generator->getRenameTableSQL($xmldb_table, $newname)) {
|
||||
|
||||
Reference in New Issue
Block a user