Closed (fixed)
Project:
Decisions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
8 Sep 2006 at 04:01 UTC
Updated:
17 Nov 2006 at 22:30 UTC
Jump to comment: Most recent file
Implement the new _uninstall hook for decisions.install per http://drupal.org/node/64279#uninstall
This should:
1. Drop the decisions table.
2. Delete all decisions nodes.
3. Delete all votes, options, and cached results via VotingAPI.
This should be accomplished by first implementing the hook to delete this info when a node is deleted, and then to add #1 and #2 to _uninstall().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | decisions_uninstall.patch | 1.98 KB | ChrisKennedy |
Comments
Comment #1
ChrisKennedy commentedOne other area to add:
4. Delete any drupal variables we have created.
Comment #2
ChrisKennedy commentedHere's an initial implementation. It drops the tables and deletes the drupal variables, but does not yet delete decisions data in the VotingAPI tables.
Comment #3
anarcat commentedThis patch was committed by Chris, and I have committed a patch that removes the votes and that needs testing.
Comment #4
anarcat commentedMake this appear higher on the list: we don't want to screw up things needlessly.
A warning should appear when deinstalling decisions to make clear that the decisions will be destroyed.
Comment #5
anarcat commented*ugh*... there *is* already a warning before the hook_uninstall is ran, so that is done... I have just committed the last bit of this to remove the nodes from the node table, so considering this as fixed.
Comment #6
(not verified) commented