Skip to content

Commit

Permalink
MySQL primary keys should be unsigned to make better use of the integ…
Browse files Browse the repository at this point in the history
…er space (ids are > 0 anyway).
  • Loading branch information
felixmiddendorf authored and cvanschalkwijk committed Sep 12, 2011
1 parent 1e4dd28 commit 12fcc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/MysqlAdapter.php
Expand Up @@ -81,7 +81,7 @@ public function accepts_limit_and_order_for_update_and_delete() { return true; }
public function native_database_types()
{
return array(
'primary_key' => 'int(11) DEFAULT NULL auto_increment PRIMARY KEY',
'primary_key' => 'int(11) UNSIGNED DEFAULT NULL auto_increment PRIMARY KEY',
'string' => array('name' => 'varchar', 'length' => 255),
'text' => array('name' => 'text'),
'integer' => array('name' => 'int', 'length' => 11),
Expand Down

0 comments on commit 12fcc4d

Please sign in to comment.