To be able to run:

if (!db_field_exists('taxonomy_index', 'uuid')) {
    db_add_field('taxonomy_index', 'uuid', $field);
    db_add_index('taxonomy_index', 'uuid', array('uuid'));
  }

UUID should depend on the taxonomy module...

CommentFileSizeAuthor
#1 taxonomy_dependency-1999730-1.patch357 bytesguillaumev

Comments

guillaumev’s picture

Status: Active » Needs review
StatusFileSize
new357 bytes

Here is a patch.

mxh’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

This doesnt make sense. UUID must not be dependent on taxonomy module. It shall be usable for any cases - nodes, comments, users, i.e. any entity type, also taxonomy vocabulary and terms. Making UUID be dependent on taxonomy module would cause it's not usable for sites which are not using taxonomy. ;)

Maybe the context is another. In which particular case do you need these 4 lines of code? Is this custom code of yours or in some other contrib module?