Beispiel #1
0
 /**
  * Drop a specific table from the SQLite database.
  *
  * @param string $table
  *   The victim table.
  */
 public static function destroyTable($table)
 {
     $pdo = Sqlite::get();
     try {
         $sql_query = 'DROP TABLE IF EXISTS ' . $table;
         $pdo->exec($sql_query);
     } catch (\PDOException $e) {
         switchboard_pdo_exception_debug($e);
     }
 }