/** Drop tables by prefix. Dangerous! It is not called by default! */ function dropTables() { $prefix = $this->db->getPrefix(); foreach ($this->db->selectCol("SHOW TABLES LIKE ?", $prefix . '%') as $table) { $this->db->query("DROP TABLE ?#", $table); } }