lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php 1 location
|
@@ 144-148 (lines=5) @@
|
| 141 |
|
case 'real': |
| 142 |
|
case 'numeric': |
| 143 |
|
case 'decimal': |
| 144 |
|
if (preg_match('([A-Za-z]+\(([0-9]+)\,([0-9]+)\))', $tableColumn['type'], $match)) { |
| 145 |
|
$precision = $match[1]; |
| 146 |
|
$scale = $match[2]; |
| 147 |
|
$length = null; |
| 148 |
|
} |
| 149 |
|
break; |
| 150 |
|
case 'tinytext': |
| 151 |
|
$length = MySqlPlatform::LENGTH_LIMIT_TINYTEXT; |
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php 1 location
|
@@ 412-416 (lines=5) @@
|
| 409 |
|
case 'numeric': |
| 410 |
|
$tableColumn['default'] = $this->fixVersion94NegativeNumericDefaultValue($tableColumn['default']); |
| 411 |
|
|
| 412 |
|
if (preg_match('([A-Za-z]+\(([0-9]+)\,([0-9]+)\))', $tableColumn['complete_type'], $match)) { |
| 413 |
|
$precision = $match[1]; |
| 414 |
|
$scale = $match[2]; |
| 415 |
|
$length = null; |
| 416 |
|
} |
| 417 |
|
break; |
| 418 |
|
case 'year': |
| 419 |
|
$length = null; |