public function rescheduleWithNewOffset($id, $addToOffset)
 {
     ArgCheck::isInt($id);
     ArgCheck::isInt($addToOffset);
     $query = sprintf("UPDATE %s SET offset = offset + %u, next_round_gmt = '%s' WHERE id = %u", self::TABLE_NAME, $addToOffset, Time::now()->addSeconds(2)->asSqlTimestamp(), $id);
     return $this->database->executeQuery($query);
 }
 public function dropTable()
 {
     $query = sprintf("DROP TABLE IF EXISTS %s", self::TABLE_NAME);
     if ($this->database->executeQuery($query) === false) {
         throw new \RuntimeException('Unable to delete database for WP Post Subscription Plugin');
     }
 }