You are here

function dba_repair_tables in Database Administration 5

Repair specified table(s) (MySQL specific).

Related topics

1 call to dba_repair_tables()
dba_check_table_form_pre_render in ./dba.module

File

./dba.module, line 1386
Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…

Code

function dba_repair_tables($tables) {
  $query = 'REPAIR TABLE ' . implode(', ', $tables) . ';';
  drupal_set_message(check_plain($query));
  return db_query($query);
}