fix notice
This commit is contained in:
parent
e7c7fd39fc
commit
1daa1bfa39
|
@ -945,7 +945,7 @@ class Schema
|
||||||
*/
|
*/
|
||||||
function validateDef($tableName, array $def)
|
function validateDef($tableName, array $def)
|
||||||
{
|
{
|
||||||
if (count($def) && $def[0] instanceof ColumnDef) {
|
if (isset($def[0]) && $def[0] instanceof ColumnDef) {
|
||||||
$def = $this->oldToNew($tableName, $def);
|
$def = $this->oldToNew($tableName, $def);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user