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.
taxonomy_update_7003() removes the 'relations' column from the taxonomy_vocabulary table but this column is still defined in taxonomy_schema().
Comment | File | Size | Author |
---|---|---|---|
#8 | 662322_rm_relations_7.patch | 1.1 KB | scor |
#7 | 662322_relations.patch | 1.45 KB | andypost |
#1 | 662322_rm_relations.patch | 718 bytes | scor |
Comments
Comment #1
scor CreditAttribution: scor commentedpatch
Comment #2
scor CreditAttribution: scor commentedseems forum.install is also using 'relations':
Am I missing something or was taxonomy 'relations' removed from D7? I can't find any other reference to it in D7.
Comment #3
Dries CreditAttribution: Dries commentedComment #5
andypostShould be fixed, because admin/structure/taxonomy is not working
Comment #6
Dries CreditAttribution: Dries commentedIt seems forum module is still using relations in forum.install. Plus, I don't understand your comment in #5 -- care to elaborate?
Comment #7
andypostSearching through whole core I found no more usage of 'relations'.
It seems like it was forgotten.
@Dries comment #5 caused by working on #563106: Cannot upgrade from Drupal 6 to Drupal 7 - meta issue - if "relations" field left in schema then after update.php visiting admin/structure/taxonomy brings mysql error: "field base.relations is not found"
This all because taxonomy_get_vocabularies() uses entity_load() which use schema to query DB, but this field is dropped in taxonomy_update_7003()
Comment #8
scor CreditAttribution: scor commentedremoves 'relations' from forum.install (#2).
Comment #9
andypostWaiting for a bot... very strange that there's no error after normal install only after update or clearing cache[schema]
Comment #10
andypostPatches are the same, RTBC again
Comment #11
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!