Commit 5792233a authored by Wilt's avatar Wilt

getSqlDeclaration -> getSQLDeclaration

Fixed inconsistent use of getSQLDeclaration method
parent cd0ab870
...@@ -504,7 +504,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -504,7 +504,7 @@ class PostgreSqlPlatform extends AbstractPlatform
$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.
$query = 'ALTER ' . $oldColumnName . ' TYPE ' . $type->getSqlDeclaration($column->toArray(), $this); $query = 'ALTER ' . $oldColumnName . ' TYPE ' . $type->getSQLDeclaration($column->toArray(), $this);
$sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . $query; $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . $query;
} }
...@@ -546,7 +546,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -546,7 +546,7 @@ class PostgreSqlPlatform extends AbstractPlatform
} }
if ($columnDiff->hasChanged('length')) { if ($columnDiff->hasChanged('length')) {
$query = 'ALTER ' . $oldColumnName . ' TYPE ' . $column->getType()->getSqlDeclaration($column->toArray(), $this); $query = 'ALTER ' . $oldColumnName . ' TYPE ' . $column->getType()->getSQLDeclaration($column->toArray(), $this);
$sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . $query; $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . $query;
} }
} }
......
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