File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments