Solar_Sql_Adapter_Sqlite2::_modIndexName()

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

Modifies the index name.

Inherited from Solar_Sql_Adapter_Sqlite.

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.

SQLite 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 'bar' on a table named 'foo', the modified name will be 'foo__bar'.



Local