Umil.table remove

From phpBB Development Wiki

umil::table_remove –– Remove a database table using the Umil Library.

Contents

Description

string umil::table_remove ( mixed $table_name )

Parameters

Parameter Required/Default Usage
table_name Required The name of the database table to remove. 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_

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 the phpbb_users table

$umil->table_remove('phpbb_users');

Example #2

Remove the TOPICS_TABLE (phpbb_topics) table

$umil->table_remove(TOPICS_TABLE);

Example #3

Removing multiple tables in one call

$umil->table_remove(array(
    
'phpbb_users',
    
TOPICS_TABLE,
    
CONFIG_TABLE,
));

See Also