mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
XMLDB_UNSIGNED only applicable to number types. MDL-11662
Merged from MOODLE_19_STABLE
This commit is contained in:
parent
9ce2fe53cb
commit
051b9588d1
@ -789,9 +789,10 @@ class XMLDBField extends XMLDBObject {
|
||||
} else {
|
||||
$result .= 'null, ';
|
||||
}
|
||||
/// Unsigned
|
||||
/// Unsigned (only applicable to numbers)
|
||||
$unsigned = $this->getUnsigned();
|
||||
if (!empty($unsigned)) {
|
||||
if (!empty($unsigned) &&
|
||||
($this->getType() == XMLDB_TYPE_INTEGER || $this->getType() == XMLDB_TYPE_NUMBER || $this->getType() == XMLDB_TYPE_FLOAT)) {
|
||||
$result .= 'XMLDB_UNSIGNED' . ', ';
|
||||
} else {
|
||||
$result .= 'null, ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user