From 880422ca8802866417cc605aa2c86f5c29206f64 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 8 Feb 2007 21:31:20 +0000 Subject: [PATCH] --- lib/Doctrine/DataDict/Pgsql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/DataDict/Pgsql.php b/lib/Doctrine/DataDict/Pgsql.php index 347566b54..f2bfe4c62 100644 --- a/lib/Doctrine/DataDict/Pgsql.php +++ b/lib/Doctrine/DataDict/Pgsql.php @@ -383,10 +383,10 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict if (!empty($field['length'])) { $length = $field['length']; if ($length > 4) { - return 'BIGSERIAL PRIMARY KEY'; + return 'BIGSERIAL'; } } - return 'SERIAL PRIMARY KEY'; + return 'SERIAL'; } if (!empty($field['length'])) { $length = $field['length']; @@ -575,7 +575,7 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict if ( ! empty($field['autoincrement'])) { $name = $this->conn->quoteIdentifier($name, true); - return $name.' '.$this->getNativeDeclaration($field); + return $name . ' ' . $this->getNativeDeclaration($field); } $default = '';