source/Spiral/Database/Drivers/MySQL/Schemas/ColumnSchema.php 1 location
|
@@ 203-207 (lines=5) @@
|
| 200 |
|
return intval($value); |
| 201 |
|
}, explode(',', $options)); |
| 202 |
|
|
| 203 |
|
if (count($options) > 1) { |
| 204 |
|
list($this->precision, $this->scale) = $options; |
| 205 |
|
} elseif (!empty($options)) { |
| 206 |
|
$this->size = $options[0]; |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
//Default value conversions |
| 210 |
|
if ($this->type == 'bit' && $this->hasDefaultValue()) { |
source/Spiral/Database/Drivers/SQLite/Schemas/ColumnSchema.php 1 location
|
@@ 174-178 (lines=5) @@
|
| 171 |
|
return intval($value); |
| 172 |
|
}, explode(',', $options)); |
| 173 |
|
|
| 174 |
|
if (count($options) > 1) { |
| 175 |
|
list($this->precision, $this->scale) = $options; |
| 176 |
|
} elseif (!empty($options)) { |
| 177 |
|
$this->size = $options[0]; |
| 178 |
|
} |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
/** |