Skip to content

Commit c55a54f

Browse files
committed
Fix setting precision for sqlserver
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
1 parent 3b71edd commit c55a54f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Phinx/Db/Adapter/SqlServerAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public function getColumns(string $tableName): array
484484
}
485485

486486
if ($type === self::PHINX_TYPE_DECIMAL) {
487-
$column->setPrecision($columnInfo['numeric_precision']);
487+
$column->setPrecision($columnInfo['precision']);
488488
}
489489

490490
$columns[$columnInfo['name']] = $column;

0 commit comments

Comments
 (0)