Merge branch 'master' into develop

This commit is contained in:
Taylor Otwell
2012-03-22 21:26:32 -05:00
2 changed files with 25 additions and 2 deletions

View File

@@ -120,9 +120,16 @@ class Schema {
{
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
{
if (isset($column->attributes[$key]))
if (isset($column->$key))
{
$table->$key($column->name);
if ($column->$key === true)
{
$table->$key($column->name);
}
else
{
$table->$key($column->name, $column->$key);
}
}
}
}