Umil.table index remove

From phpBB Development Wiki

umil::table_index_remove –– Remove an index/key from a database table using the Umil Library.

Contents

Description

string umil::table_index_remove ( mixed $table_name [, string $index_name ] )

Parameters

Parameter Required/Default Usage
table_name Required The name of the database table to remove the index from. You may just use phpbb_ for the table prefix if you would like. UMIL correctly sets the table prefix to the board's default if you enter in phpbb_
index_name default '' The name of the index/key to remove

Return Values

Returns result or umil_end data

This article is a stub. You can help in improving Olympus Documentation by expanding it.


Examples

Example #1

Remove an index named 'test_foo' from the database table named 'phpbb_test'

$umil->table_index_remove('phpbb_test''test_foo');

Example #2

Remove an index named 'test_bar' from the database table named 'phpbb_users'

$umil->table_index_remove(USERS_TABLE'test_bar');

Example #3

Removing multiple indexes with one function call

$umil->table_index_remove(array(
    array(
'phpbb_test''test_foo'),
    array(
USERS_TABLE'test_bar'),
));

See Also