Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaQuery.php
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | public function loadActualSchema() { | ||||
| return $server_schema; | return $server_schema; | ||||
| } | } | ||||
| public function loadExpectedSchema() { | public function loadExpectedSchema() { | ||||
| $databases = $this->getDatabaseNames(); | $databases = $this->getDatabaseNames(); | ||||
| $info = $this->getAPI()->getCharsetInfo(); | $info = $this->getAPI()->getCharsetInfo(); | ||||
| $specs = id(new PhutilSymbolLoader()) | $specs = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('PhabricatorConfigSchemaSpec') | ->setAncestorClass('PhabricatorConfigSchemaSpec') | ||||
| ->loadObjects(); | ->execute(); | ||||
| $server_schema = new PhabricatorConfigServerSchema(); | $server_schema = new PhabricatorConfigServerSchema(); | ||||
| foreach ($specs as $spec) { | foreach ($specs as $spec) { | ||||
| $spec | $spec | ||||
| ->setUTF8Charset( | ->setUTF8Charset( | ||||
| $info[PhabricatorStorageManagementAPI::CHARSET_DEFAULT]) | $info[PhabricatorStorageManagementAPI::CHARSET_DEFAULT]) | ||||
| ->setUTF8BinaryCollation( | ->setUTF8BinaryCollation( | ||||
| $info[PhabricatorStorageManagementAPI::COLLATE_TEXT]) | $info[PhabricatorStorageManagementAPI::COLLATE_TEXT]) | ||||
| ▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines | |||||