Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | protected function buildFerretIndexSchema(PhabricatorFerretEngine $engine) { | ||||
| $this->buildRawSchema( | $this->buildRawSchema( | ||||
| $engine->getApplicationName(), | $engine->getApplicationName(), | ||||
| $engine->getNgramsTableName(), | $engine->getNgramsTableName(), | ||||
| $engine->getNgramsSchemaColumns(), | $engine->getNgramsSchemaColumns(), | ||||
| $engine->getNgramsSchemaKeys(), | $engine->getNgramsSchemaKeys(), | ||||
| $index_options); | $index_options); | ||||
| // NOTE: The common ngrams table is not marked as an index table. It is | |||||
| // tiny and persisting it across a restore saves us a lot of work garbage | |||||
| // collecting common ngrams from the index after it gets built. | |||||
| $this->buildRawSchema( | $this->buildRawSchema( | ||||
| $engine->getApplicationName(), | $engine->getApplicationName(), | ||||
| $engine->getCommonNgramsTableName(), | $engine->getCommonNgramsTableName(), | ||||
| $engine->getCommonNgramsSchemaColumns(), | $engine->getCommonNgramsSchemaColumns(), | ||||
| $engine->getCommonNgramsSchemaKeys(), | $engine->getCommonNgramsSchemaKeys()); | ||||
| $index_options); | |||||
| } | } | ||||
| protected function buildRawSchema( | protected function buildRawSchema( | ||||
| $database_name, | $database_name, | ||||
| $table_name, | $table_name, | ||||
| array $columns, | array $columns, | ||||
| array $keys, | array $keys, | ||||
| array $options = array()) { | array $options = array()) { | ||||
| ▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines | |||||