Hello,

I had removed user_relationship_limits module from my site awhile back, but reinstalled the module today for testing and got this message upon enabling:

user warning: Table 'user_relationship_limits' already exists query: CREATE TABLE user_relationship_limits ( `rtid` INT unsigned NOT NULL DEFAULT 0, `rid` INT unsigned NOT NULL DEFAULT 0, `role_limit` INT unsigned NOT NULL DEFAULT 0, UNIQUE KEY rtid (rtid, rid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in /srv/www/example.com/public_html/includes/database.inc on line 550.

When I uninstall this module, should these tables created by this module be automatically deleted?

Thank you

Comments

mrf’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » mrf
Category: support » bug

All database information should be deleted when the module is uninstalled. I'll take a look and see what is going on.

Was the earlier version of the module the dev module from this project page, or the earlier module from the user_relationships issue queue?

mrf’s picture

Status: Active » Fixed

It seems this issue occurs when the earlier version of the module not using the schema api to create the database had been installed. If you manually remove the database after uninstalling and then re-enable the module it will be properly deleted upon the next uninstall.

I've added in a few messages in the latest dev version to let you know that the install and uninstall sequences are finished running.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.