@@ 2332-2334 (lines=3) @@ | ||
2329 | if (is_string($def)) { |
|
2330 | $constraints[] = 'CHECK (' . $def . ')'; |
|
2331 | } else { |
|
2332 | if (isset($def['min'])) { |
|
2333 | $constraints[] = 'CHECK (' . $field . ' >= ' . $def['min'] . ')'; |
|
2334 | } |
|
2335 | ||
2336 | if (isset($def['max'])) { |
|
2337 | $constraints[] = 'CHECK (' . $field . ' <= ' . $def['max'] . ')'; |
|
@@ 2336-2338 (lines=3) @@ | ||
2333 | $constraints[] = 'CHECK (' . $field . ' >= ' . $def['min'] . ')'; |
|
2334 | } |
|
2335 | ||
2336 | if (isset($def['max'])) { |
|
2337 | $constraints[] = 'CHECK (' . $field . ' <= ' . $def['max'] . ')'; |
|
2338 | } |
|
2339 | } |
|
2340 | } |
|
2341 |