Solar_Sql_Adapter_Pgsql::_modIndexName()

protected string Solar_Sql_Adapter_Pgsql::_modIndexName ( string $table , string $name )

Modifies the index name.

Parameters

  • (string) $table: The table on which the index occurs.

  • (string) $name: The requested index name.

Returns

  • (string) The modified index name.

Description

Modifies the index name.

PostgreSQL won't allow two indexes of the same name, even if they are on different tables. This method modifies the name by prefixing with the table name and two underscores. Thus, for a index named 'foo' on a table named 'bar', the modified name will be 'foo__bar'.



Local