Skip to content

Commit

Permalink
Use serial instead of identity columns since akiban now supports it.
Browse files Browse the repository at this point in the history
  • Loading branch information
posulliv committed Aug 22, 2012
1 parent 366ad07 commit 40fe291
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
Expand Up @@ -457,8 +457,7 @@ public function getBooleanTypeDeclarationSQL(array $field)
public function getIntegerTypeDeclarationSQL(array $field)
{
if ( ! empty($field['autoincrement'])) {
/* really, this should be return 'SERIAL' but we do not have serial for now */
return 'INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1)';
return 'SERIAL';
}
return 'INT';
}
Expand All @@ -469,8 +468,7 @@ public function getIntegerTypeDeclarationSQL(array $field)
public function getBigIntTypeDeclarationSQL(array $field)
{
if ( ! empty($field['autoincrement'])) {
/* really, this should be return 'BIGSERIAL' but we do not have serial for now */
return 'BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1)';
return 'BIGSERIAL';
}
return 'BIGINT';
}
Expand Down

0 comments on commit 40fe291

Please sign in to comment.