You are here

public function GenericDatabase::alterNewTable in Search API 8

Reacts to a new table being created.

Parameters

string $table: The name of the table.

string $type: (optional) The type of table. One of "index" (for the denormalized table for an entire index), "text" (for an index's fulltext data table) and "field" (for field-specific tables).

Throws

\Drupal\search_api\SearchApiException Thrown if any error occurs that should abort the current action. Internal errors that can be ignored should just be logged.

Overrides DatabaseCompatibilityHandlerInterface::alterNewTable

1 method overrides GenericDatabase::alterNewTable()
MySql::alterNewTable in modules/search_api_db/src/DatabaseCompatibility/MySql.php
Reacts to a new table being created.

File

modules/search_api_db/src/DatabaseCompatibility/GenericDatabase.php, line 60

Class

GenericDatabase
Represents any database for which no specifics are known.

Namespace

Drupal\search_api_db\DatabaseCompatibility

Code

public function alterNewTable($table, $type = 'text') {
}