The following function can be added to the file project_issue.install to allow the uninstall of the module :

function project_issue_uninstall() {

// Drop database table
db_query('DROP TABLE {project_issue_projects}');
db_query('DROP TABLE {project_issues}');
db_query('DROP TABLE {project_comments}');
db_query('DROP TABLE {project_subscriptions}');
db_query('DROP TABLE {project_issue_state}');

// Delete variables

}

Without this, the tables are not deleted when the module is uninstalled.

Comments

dww’s picture

Version: 5.x-0.2-beta » 5.x-2.x-dev
Component: Issues » Miscellaneous
Assigned: Unassigned » dww
Status: Needs work » Needs review
StatusFileSize
new1.51 KB

Here's a more complete, easier to maintain implementation.

dww’s picture

StatusFileSize
new1.56 KB

I left off the db_table_exists() call I meant to use... And this one I even tested on MySQL. ;)

hunmonk’s picture

Status: Needs review » Reviewed & tested by the community

code style is good. tested as working on pgsql

dww’s picture

Status: Reviewed & tested by the community » Fixed

committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)