Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mrf CreditAttribution: mrf commentedAll 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?
Comment #2
mrf CreditAttribution: mrf commentedIt 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.