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,9 +120,16 @@ protected static function implications($table)
|
||||||
{
|
{
|
||||||
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue