wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



add_clean_index › WordPress Function

Od1.0.1
Przestarzałyn/a
add_clean_index ( $table, $index )
Parametry: (2)
  • (string) $table Database table name.
    Wymagane: Tak
  • (string) $index Database table index column.
    Wymagane: Tak
Powrót:
  • (true) True, when done with execution.
Zdefiniowane na:
Codex:

Adds an index to a specified table.



Źródło

function add_clean_index( $table, $index ) {
	global $wpdb;

	drop_index( $table, $index );
	$wpdb->query( "ALTER TABLE `$table` ADD INDEX ( `$index` )" );

	return true;
}