mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-14679 table/column meta cache is reset on each request and DDL operation.
No need to call it with false parameter but in very exceptional ocasions.
This commit is contained in:
parent
4735315363
commit
f713581bc3
4 changed files with 5 additions and 5 deletions
|
@ -152,7 +152,7 @@ class database_manager {
|
|||
}
|
||||
|
||||
/// Get list of fields in table
|
||||
$columns = $this->mdb->get_columns($tablename, false);
|
||||
$columns = $this->mdb->get_columns($tablename);
|
||||
|
||||
$exists = array_key_exists($fieldname, $columns);
|
||||
|
||||
|
@ -1010,7 +1010,7 @@ class database_manager {
|
|||
}
|
||||
|
||||
// a) check for required fields
|
||||
$dbfields = $this->mdb->get_columns($tablename, false);
|
||||
$dbfields = $this->mdb->get_columns($tablename);
|
||||
$fields = $table->getFields();
|
||||
foreach ($fields as $field) {
|
||||
$fieldname = $field->getName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue