Permalink
Browse files

Add UNSIGNED attribute to serial columns.

  • Loading branch information...
franzliedke committed Nov 7, 2011
1 parent 29a263c commit 5f667bf8dba4702d71427f94899d301ece35245b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/Adapter.php
View
@@ -803,7 +803,7 @@ protected function compileColumnType($type)
protected function compileColumnSerial($name)
{
- return $name.' INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY';
+ return $name.' INTEGER UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY';
}
protected function compileJoin(array $joins)

0 comments on commit 5f667bf

Please sign in to comment.