MDL-34475 add default value to xmldb_field hash calculation

This commit is contained in:
Petr Škoda
2012-07-23 21:36:39 +02:00
parent 9592f5dea8
commit e2ecc7c6cc
+2 -1
View File
@@ -493,9 +493,10 @@ class xmldb_field extends xmldb_object {
if (!$this->loaded) {
$this->hash = null;
} else {
$defaulthash = is_null($this->default) ? '' : sha1($this->default);
$key = $this->name . $this->type . $this->length .
$this->notnull . $this->sequence .
$this->decimals . $this->comment;
$this->decimals . $this->comment . $defaulthash;
$this->hash = md5($key);
}
}