Fix named keys on Schema columns.
Signed-off-by: Phill Sparks <me@phills.me.uk>
This commit is contained in:
parent
f27027d3a8
commit
d1de7b9ffe
|
@ -120,10 +120,17 @@ protected static function implications($table)
|
|||
{
|
||||
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
||||
{
|
||||
if (isset($column->attributes[$key]))
|
||||
if (isset($column->$key))
|
||||
{
|
||||
if ($column->$key === true)
|
||||
{
|
||||
$table->$key($column->name);
|
||||
}
|
||||
else
|
||||
{
|
||||
$table->$key($column->name, $column->$key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue