Opened 13 years ago
Closed 13 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: |
Description
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 13 years ago by
Priority: | normal → high |
---|
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
As an administrator, create a node with the following content using the PHP input format:
<?php $query = db_query("SELECT nid FROM {node} WHERE type IN ('jsdoc_object', 'jsdoc_resource')"); while($node = db_fetch_object($query)) { node_delete($node->nid); set_time_limit(120); } $query = db_query("SELECT nid FROM {node} WHERE type LIKE 'jsdoc%'"); while($node = db_fetch_object($query)) { node_delete($node->nid); set_time_limit(120); } ?>
Note: See
TracTickets for help on using
tickets.
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.