Skip to content

Commit 3b71edd

Browse files
committed
cast to int for scale
Signed-off-by: Matthew Peveler <[email protected]>
1 parent bc94ada commit 3b71edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Phinx/Db/Adapter/SqlServerAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ 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'])
479+
->setScale($columnInfo['scale'] ? (int)$columnInfo['scale'] : null)
480480
->setComment($this->getColumnComment($columnInfo['table_name'], $columnInfo['name']));
481481

482482
if (!empty($columnInfo['char_length'])) {

0 commit comments

Comments
 (0)