Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BIGINTs can also be primary keys

  • Loading branch information...
commit 68116f701708ef80e0baa102f57a3a768bccc203 1 parent 15555a7
Tommy MacWilliam tmacwill authored markstory committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Model/Datasource/DboSource.php
2  lib/Cake/Model/Datasource/DboSource.php
View
@@ -3068,7 +3068,7 @@ public function buildColumn($column) {
}
$out = $this->_buildFieldParameters($out, $column, 'beforeDefault');
- if (isset($column['key']) && $column['key'] === 'primary' && $type === 'integer') {
+ if (isset($column['key']) && $column['key'] === 'primary' && ($type === 'integer' || $type === 'biginteger')) {
$out .= ' ' . $this->columns['primary_key']['name'];
} elseif (isset($column['key']) && $column['key'] === 'primary') {
$out .= ' NOT NULL';
Please sign in to comment.
Something went wrong with that request. Please try again.