MDL-58584 core_ddl: getDropTableSQL should not do more than what it says

This commit is contained in:
Shamim Rezaie
2020-02-03 15:07:15 +11:00
parent b4d062c6be
commit 934c2ee1b6
8 changed files with 83 additions and 33 deletions
-15
View File
@@ -103,21 +103,6 @@ class postgres_sql_generator extends sql_generator {
return $sqlarr;
}
/**
* Given one correct xmldb_table, returns the SQL statements
* to drop it (inside one array).
*
* @param xmldb_table $xmldb_table The table to drop.
* @return array SQL statement(s) for dropping the specified table.
*/
public function getDropTableSQL($xmldb_table) {
$sqlarr = parent::getDropTableSQL($xmldb_table);
if ($this->temptables->is_temptable($xmldb_table->getName())) {
$this->temptables->delete_temptable($xmldb_table->getName());
}
return $sqlarr;
}
/**
* Given one correct xmldb_index, returns the SQL statements
* needed to create it (in array).