You are here

public function DatabaseCompatibilityHandlerInterface::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.

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

File

modules/search_api_db/src/DatabaseCompatibility/DatabaseCompatibilityHandlerInterface.php, line 50

Class

DatabaseCompatibilityHandlerInterface
Bundles methods for resolving DBMS-specific differences.

Namespace

Drupal\search_api_db\DatabaseCompatibility

Code

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