Opened 14 years ago

Closed 14 years ago

#5095 closed defect (fixed)

need a way to flush/reset jsdoc database

Reported by: dante Owned by: Neil Roberts
Priority: high Milestone: 1.1
Component: Doc parser Version: 0.9
Keywords: jsdoc drupal module Cc:
Blocked By: Blocking:


anything easier than dropping the drupal database and reinstalling would be sufficient.

not sure how it's related, but after running cron.php all the examples: were replaced with their 'weight' value in the database, so attempting to reset via dropping or emptying tables started throwing drupal erros about sql syntax etc. dropping drupal db solved issues.

Change History (2)

comment:1 Changed 14 years ago by dante

Priority: normalhigh

you had a one line drupal command you could put into a php file to do this?

care to document it here? others would benefit.

comment:2 Changed 14 years ago by Neil Roberts

Resolution: fixed
Status: newclosed

As an administrator, create a node with the following content using the PHP input format:


$query = db_query("SELECT nid FROM {node} WHERE type IN ('jsdoc_object', 'jsdoc_resource')");
while($node = db_fetch_object($query)) {
$query = db_query("SELECT nid FROM {node} WHERE type LIKE 'jsdoc%'");
while($node = db_fetch_object($query)) {

Note: See TracTickets for help on using tickets.