/** * @param ModelColumn $target * @return bool */ public function isEqual(DatabaseColumn $target) { if ($this->name != $target->getName()) { return false; } if ($this->type != $target->gettype()) { return false; } if ($this->isString()) { if ($this->length != $target->getLength()) { return false; } } if ($this->ai != $target->getAi()) { return false; } if ($this->null != $target->getNull()) { return false; } if ($this->default != $target->getDefault()) { return false; } if ($this->comment != $target->getComment()) { return false; } if ($this->ai != $target->getAi()) { return false; } return true; }