Skip to content
This repository
Browse code

BIGINTs can also be primary keys

  • Loading branch information...
commit 68116f701708ef80e0baa102f57a3a768bccc203 1 parent 15555a7
Tommy MacWilliam authored August 26, 2012 markstory committed August 30, 2012
2  lib/Cake/Model/Datasource/DboSource.php
@@ -3068,7 +3068,7 @@ public function buildColumn($column) {
3068 3068
 		}
3069 3069
 		$out = $this->_buildFieldParameters($out, $column, 'beforeDefault');
3070 3070
 
3071  
-		if (isset($column['key']) && $column['key'] === 'primary' && $type === 'integer') {
  3071
+		if (isset($column['key']) && $column['key'] === 'primary' && ($type === 'integer' || $type === 'biginteger')) {
3072 3072
 			$out .= ' ' . $this->columns['primary_key']['name'];
3073 3073
 		} elseif (isset($column['key']) && $column['key'] === 'primary') {
3074 3074
 			$out .= ' NOT NULL';

0 notes on commit 68116f7

Please sign in to comment.
Something went wrong with that request. Please try again.