Installing, un-installing, re-installing edge case manual vocabulary association documentation
evoltech - October 1, 2009 - 19:25
| Project: | Project |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
With the install, un-install, re-install edge case the "Project types" or "Project release API compatibility" vocabularies need to be manually associated with the Project and Project release node types. I just documented this in the FAQ and am adding a patch to the README here as well.

#1
#2
That's a good start, thanks. However, there are a few typos: "the the", "Releases", "manuall"...
Also, did you happen to test this case and see what happens to the {vocabulary}.module field when you uninstall project or project_release? If those get cleared out, then the code that's going to automatically re-associate these vocabs in terms of the 'project_vocabulary' and 'project_release_api_vocabulary' variables won't be able to find the right vocabs and might end up creating new ones...
Thanks!
-Derek
#3
Re-rolled.
The {vocabulary} rows for the project_release do not change on uninstall, even {vocabulary}.relations still shows as 1 even though admin/content/taxonomy does not still list the project_release node in the type field. So new vocabularies are not re-created.
On re-installing, though what I notice is that old projects no longer have the associated rows in {project_release_projects}. This means that even after the the project_release module is re-added, you won't be able to add releases to it until you manually massage the database. It stands to reason that all references to previous releases will no longer be in the database and will not be re-discovered.
I would like to point out, I don't think any of this is a bug, just that it should be documented somewhere. Maybe "Weird things might happen if you install, un-install, then re-install this module. It has to do with the database. You have been warned." ;)