public function hasUnsignedPrimaryKey($tables)
{
foreach ($tables as $table) {
$tableSchema = $table;
if (!$table instanceof Table) {
$tableSchema = $this->schema($table);
}
$tablePrimaryKeys = $tableSchema->primaryKey();
foreach ($tablePrimaryKeys as $primaryKey) {
$column = $tableSchema->column($primaryKey);
if (isset($column['unsigned']) && $column['unsigned'] === true) {
return true;
}
}
}
return false;
}