Issue #2477845 by ingaro, bzrudi71: PostgreSQL: Fix broken migrate table creation

8.0.x
webchick 2015-05-24 15:28:37 -07:00
parent 50cfc9e198
commit f74f967d9c
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ class Schema extends DatabaseSchema {
unset($spec['not null']);
}
if (in_array($spec['pgsql_type'], array('varchar', 'character', 'text')) && isset($spec['length'])) {
if (in_array($spec['pgsql_type'], array('varchar', 'character')) && isset($spec['length'])) {
$sql .= '(' . $spec['length'] . ')';
}
elseif (isset($spec['precision']) && isset($spec['scale'])) {