The documentation on Converting 6.x modules to 7.x states that the drupal6 table term_node was renamed to taxonomy_term_node. However, no such table exists in drupal7, and it's not immediately clear what the correct replacement table is.

The replacement table for term_node appears to be taxonomy_index. However, taxonomy_index does not contain the vid field previously found in term_node (where I believe vid in this context is the node revision id, rather than the vocabulary id). I'm guessing that in cases where the revision id is relevant, you now need to check the appropriate field table (e.g., field_data_field_tags). However, I'm not sure, which is why I'm posting this as an issue instead of trying to update the documentation myself.

Specific sections of the documentation that need to updated are:

Comments

jhodgdon’s picture

Category: task » bug
Issue tags: -Needs documentation +Needs documentation updates

Thanks for finding this. I'm not sure what the right answer is... Changing tag (we use Needs Update Documentation for updates needed to the update documentation).

droplet’s picture

taxonomy.install

Migrate {taxonomy_term_node} table to field storage.

"db_rewrite_sql() replaced with hook_query_alter()"

I would suggest don't change TABLE_NAME for examples. It's an example to show the new way only. use same name is more clear. Or we take another new examples without table_name changes

jhodgdon’s picture

Actually, the table name is important for db_rewrite_sql, in my opinion. You have to know what tables you are operating on. But probably the example should use the node table.

jhodgdon’s picture

Status: Active » Fixed

OK. I have put a new example in the db_rewrite_sql section, and added a note to the taxonomy table name change section. Should be clearer.
http://drupal.org/update/modules/6/7#taxonomy_tables
http://drupal.org/update/modules/6/7#db_rewrite_sql

Status: Fixed » Closed (fixed)
Issue tags: -Needs documentation updates

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