Commit 973750d3 authored by František Bereň's avatar František Bereň Committed by Benjamin Eberlei

Update PostgreSqlPlatform.php

Decimal column Update if precision or scale was changed
parent f27a56a2
......@@ -421,7 +421,7 @@ class PostgreSqlPlatform extends AbstractPlatform
$oldColumnName = $columnDiff->oldColumnName;
$column = $columnDiff->column;
if ($columnDiff->hasChanged('type')) {
if ($columnDiff->hasChanged('type') || $columnDiff->hasChanged('precision') || $columnDiff->hasChanged('scale')) {
$type = $column->getType();
// 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