Commit f74f967d authored by webchick's avatar webchick

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

parent 50cfc9e1
......@@ -280,7 +280,7 @@ protected function createFieldSql($name, $spec) {
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'])) {
......
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