When installing a fresh install of Leech on a system recently updated to Drupal 5, none of the leech or node template tables are created.

I've repeatedly disabled the leech and node template modules, deleted the folder, and then reinstalled, but NOTHING will create the required tables.

Perhaps this hasn't been discovered yet because most people were updating from previous versions of Leech???

Comments

aron novak’s picture

disabled the leech and node template modules, deleted the folder, and then reinstalled

You don't mentioned dropping the database :)
If you want to "emulate" a new install, please do the following at the SQL prompt:
delete from system where filename="modules/leech/leech.module";

zoon_unit’s picture

This of course, assumes that the leech module still resides in the modules directory, instead of sites/all/modules. I'm starting to wonder if this is the problem with both leech and voting api. I moved the modules from the standard 4.7 location to the sites/all/modules location, but it appears that the system table does not update the record.

I'm appalled to discover that the system table never "cleans itself out" or updates after modules have been removed (or in my case, moved) I'm finding remnants of old modules all over the place.

zoon_unit’s picture

UPDATE: Dropping the tables and the system table record fixed the problem. I'm able to continue, but I strongly suggest you add the update and uninstall functions to your leech.install in a future version.

Thanks for the workaround tip, though! I really depend on your module. :-)

aron novak’s picture

Assigned: Unassigned » aron novak
Category: bug » feature

Thanks for the response.
I transform this entry into a feature request: I have to write correct update and uninstall functions into the .install file.

aron novak’s picture

Title: Leech tables are not created » Implement hook_uninstall and hook_update
Status: Active » Needs review

The first step is done: all of the leech modules (leech, leech_yahoo_terms and node_template) are expanded with a hook_uninstall. The user can make a cleanup after experimenting with leech.

aron novak’s picture

Status: Needs review » Active

Can someone (who have to upgrade to leech 1.6 from previous 1.5 version) make a proper update functionality patch?
It would be great if the leech users don't have to modify the SQL tables by hand.