Commit 880422ca authored by zYne's avatar zYne

--no commit message

--no commit message
parent 35a760aa
...@@ -383,10 +383,10 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict ...@@ -383,10 +383,10 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict
if (!empty($field['length'])) { if (!empty($field['length'])) {
$length = $field['length']; $length = $field['length'];
if ($length > 4) { if ($length > 4) {
return 'BIGSERIAL PRIMARY KEY'; return 'BIGSERIAL';
} }
} }
return 'SERIAL PRIMARY KEY'; return 'SERIAL';
} }
if (!empty($field['length'])) { if (!empty($field['length'])) {
$length = $field['length']; $length = $field['length'];
...@@ -575,7 +575,7 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict ...@@ -575,7 +575,7 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict
if ( ! empty($field['autoincrement'])) { if ( ! empty($field['autoincrement'])) {
$name = $this->conn->quoteIdentifier($name, true); $name = $this->conn->quoteIdentifier($name, true);
return $name.' '.$this->getNativeDeclaration($field); return $name . ' ' . $this->getNativeDeclaration($field);
} }
$default = ''; $default = '';
......
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