You are here

function devel_table_keys in Devel 5

Enable or disable indexes for a given table. Useful during a bulk import.

Return value

void

File

./devel.module, line 1513

Code

function devel_table_keys($tables, $verb = 'ENABLE') {
  foreach ($tables as $table) {
    db_query("ALTER TABLE {$table} {$verb} KEYS");
  }
}