We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc94ada commit 3b71eddCopy full SHA for 3b71edd
src/Phinx/Db/Adapter/SqlServerAdapter.php
@@ -476,7 +476,7 @@ public function getColumns(string $tableName): array
476
->setNull($columnInfo['null'] !== 'NO')
477
->setDefault($this->parseDefault($columnInfo['default']))
478
->setIdentity($columnInfo['identity'] === '1')
479
- ->setScale($columnInfo['scale'])
+ ->setScale($columnInfo['scale'] ? (int)$columnInfo['scale'] : null)
480
->setComment($this->getColumnComment($columnInfo['table_name'], $columnInfo['name']));
481
482
if (!empty($columnInfo['char_length'])) {
0 commit comments