Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use serial instead of identity columns since akiban now supports it.

  • Loading branch information...
commit 40fe29103a37f13706196c5c2066e143b27a0fdf 1 parent 366ad07
@posulliv authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
View
6 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -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';
}
@@ -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';
}
Please sign in to comment.
Something went wrong with that request. Please try again.