Commit 10376551 authored by František Bereň's avatar František Bereň

Update PostgreSqlPlatform.php

Decimal column Update if precision or scale was changed
parent 8f119eea
...@@ -437,7 +437,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -437,7 +437,7 @@ class PostgreSqlPlatform extends AbstractPlatform
$oldColumnName = $columnDiff->oldColumnName; $oldColumnName = $columnDiff->oldColumnName;
$column = $columnDiff->column; $column = $columnDiff->column;
if ($columnDiff->hasChanged('type')) { if ($columnDiff->hasChanged('type') || $columnDiff->hasChanged('precision') || $columnDiff->hasChanged('scale')) {
$type = $column->getType(); $type = $column->getType();
// here was a server version check before, but DBAL API does not support this anymore. // here was a server version check before, but DBAL API does not support this anymore.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment