protected function compareToSimilarSchema(PhabricatorConfigStorageSchema $expect) { $issues = array(); if ($this->getCollation() != $expect->getCollation()) { $issues[] = self::ISSUE_COLLATION; } return $issues; }
protected function compareToSimilarSchema(PhabricatorConfigStorageSchema $expect) { $issues = array(); if ($this->getAccessDenied()) { $issues[] = self::ISSUE_ACCESSDENIED; } else { if ($this->getCharacterSet() != $expect->getCharacterSet()) { $issues[] = self::ISSUE_CHARSET; } if ($this->getCollation() != $expect->getCollation()) { $issues[] = self::ISSUE_COLLATION; } } return $issues; }
protected function compareToSimilarSchema(PhabricatorConfigStorageSchema $expect) { $issues = array(); $type_unknown = PhabricatorConfigSchemaSpec::DATATYPE_UNKNOWN; if ($expect->getColumnType() == $type_unknown) { $issues[] = self::ISSUE_UNKNOWN; } else { if ($this->getCharacterSet() != $expect->getCharacterSet()) { $issues[] = self::ISSUE_CHARSET; } if ($this->getCollation() != $expect->getCollation()) { $issues[] = self::ISSUE_COLLATION; } if ($this->getColumnType() != $expect->getColumnType()) { $issues[] = self::ISSUE_COLUMNTYPE; } if ($this->getNullable() !== $expect->getNullable()) { $issues[] = self::ISSUE_NULLABLE; } if ($this->getAutoIncrement() !== $expect->getAutoIncrement()) { $issues[] = self::ISSUE_AUTOINCREMENT; } } return $issues; }