Skip to content

Commit bc94ada

Browse files
committed
wip
Signed-off-by: Matthew Peveler <[email protected]>
1 parent c639dd2 commit bc94ada

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@ parameters:
44
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
55
count: 1
66
path: src/Phinx/Db/Adapter/MysqlAdapter.php
7-
8-
-
9-
message: "#^Ternary operator condition is always true\\.$#"
10-
count: 2
11-
path: src/Phinx/Db/Adapter/SqlServerAdapter.php
12-

src/Phinx/Db/Adapter/SqlServerAdapter.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,17 @@ public function getColumns(string $tableName): array
476476
->setNull($columnInfo['null'] !== 'NO')
477477
->setDefault($this->parseDefault($columnInfo['default']))
478478
->setIdentity($columnInfo['identity'] === '1')
479+
->setScale($columnInfo['scale'])
479480
->setComment($this->getColumnComment($columnInfo['table_name'], $columnInfo['name']));
480481

481482
if (!empty($columnInfo['char_length'])) {
482483
$column->setLimit((int)$columnInfo['char_length']);
483484
}
484485

486+
if ($type === self::PHINX_TYPE_DECIMAL) {
487+
$column->setPrecision($columnInfo['numeric_precision']);
488+
}
489+
485490
$columns[$columnInfo['name']] = $column;
486491
}
487492

0 commit comments

Comments
 (0)