I just uninstalled all og modules. After the deinstallation I still have the tables og ,og_role, og_role_permission, og_user_roles within by database. I guess they should be deleted during uninstallation, or not?

Comments

amitaibu’s picture

Title: Uninstallation » Uninstallation doesn't remove tables

Interesting. I've just tried doing the same with the comments module of Drupal core, and the tables were not removed as well.

shunting’s picture

Same here. I just dropped the tables from the database, assuming there are no dependencies... For now, no problems to report.

geerlingguy’s picture

Version: 7.x-1.0 » 7.x-1.x-dev

I was going to say that it doesn't seem you've included the drupal_uninstall_schema() function in hook_uninstall, but then noticed that this seems to not be necessary in Drupal 7.

Which means, this is a core bug.

See: #306151: Automatically install/uninstall schema - seems like it should be working. Can anyone else test with this and/or other modules that should be removing their tables after explicitly uninstalling them?

dave reid’s picture

I just tried this with the latest og 7.x-1.x-dev and it uninstalled just fine.

geerlingguy’s picture

@JonasK & shunting - could you try again, and see if the problem happens again?

shunting’s picture

@5 Jonas: This time, no problem.

WhiplashInfo’s picture

This isn't a issue concerning the OG module. I guess theres a core issue. I have runned into this problem today regarding two diffent modules.

I use core version 7.7.

I hade PDOException: SQLSTATE[42S22] problems with the modules User Revisions and Biblio.
See
http://drupal.org/node/1213672 and
http://drupal.org/node/1248254

After gone through the unistall process I tryed to install the new version of User Revision but runned into the problem with the core system reported that the module already was installed.

-------------------------------------------
User revision is already installed.

You can find modules and themes on drupal.org. The following file extensions are supported: zip tar tgz gz bz2.
Install from a URL
For example: http://ftp.drupal.org/files/projects/name.tar.gz
Or
Upload a module or theme archive to install
For example: name.tar.gz from your local computer
-------------------------------------------

This is now taken from my log:

-------------------------------------------
Type file
Date Sunday, August 14, 2011 - 18:52
User admin
Location http://www.mydomain/d/?q=admin_menu/flush-cache&destination=admin/module...
Referrer http://www.mydomain/d/?q=admin/modules/install
Message The file public://ctools/css was not deleted, because it does not exist.
Severity notice
Hostname 83.233.16.63
Operations

Type system
Date Sunday, August 14, 2011 - 18:51
User admin
Location http://www.fmedk.se/d/?q=admin/modules/uninstall/confirm
Referrer http://www.fmedk.se/d/?q=admin/modules/uninstall/confirm
Message user_revision module uninstalled.
Severity info
Hostname 83.233.16.63
Operations
-------------------------------------------

Thanks / Tomas

joelpittet’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 reached end-of-life and the D7 version of Organic Groups is no longer being developed. To keep the issue queue focused on supported versions, we’re closing older D7 issues. If you still have questions about using Organic Groups on Drupal 7, feel free to ask. While we won’t fix D7 bugs anymore, we’re happy to offer guidance to help you move forward. You can do so by opening (or reopening) a D7 issue, or by reaching out in the #og channel on Drupal Slack.

If this issue is still relevant for Drupal 10+, please open a follow-up issue or merge request with proposed changes. Contributions are always welcome! 💙

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.