@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->Collation = isset($indexField['Collation']) ? $indexField['Collation'] : null; |
28 | 28 | $this->Cardinality = isset($indexField['Cardinality']) ? $indexField['Cardinality'] : null; |
29 | 29 | $this->Sub_part = isset($indexField['Sub_part']) ? $indexField['Sub_part'] : null; |
30 | - $this->Null = isset($indexField['Null']) ? $indexField['Null'] : null; |
|
30 | + $this->null = isset($indexField['Null']) ? $indexField['Null'] : null; |
|
31 | 31 | $this->Expression = isset($indexField['Expression']) ? $indexField['Expression'] : null; |
32 | 32 | |
33 | 33 | return $this; |
@@ -153,7 +153,7 @@ |
||
153 | 153 | |
154 | 154 | |
155 | 155 | // If this field is not null and default value is not set - then this field is mandatory |
156 | - if ($fieldDescription->Null === 'NO' && $fieldDescription->Default === null && !$nonMandatory) { |
|
156 | + if ($fieldDescription->null === 'NO' && $fieldDescription->Default === null && !$nonMandatory) { |
|
157 | 157 | $this->mandatory = true; |
158 | 158 | } |
159 | 159 |