added key and session tasks.

This commit is contained in:
Taylor Otwell
2012-01-24 15:02:51 -06:00
parent 20b4cf7bb8
commit 27fdb1e3f5
7 changed files with 85 additions and 5 deletions

View File

@@ -144,7 +144,7 @@ class MySQL extends Grammar {
*/
public function primary(Table $table, Fluent $command)
{
return $this->key($table, $command, 'PRIMARY KEY');
return $this->key($table, $command->name(null), 'PRIMARY KEY');
}
/**