Best place to ask this is in the issue queue for the project:
https://www.drupal.org/project/issues/taxonomy_image?categories=All
That module hasn't got much attention for D7 and doesn't even have a stable release. It's showing less than 100 installs on D7 sites, so chances are there's a bug in there you are experiencing.
Since that's actually a table from the field system, you aren't going to find a simple query to create it. They are created through the field_create_instance function.
Jamie Holly http://hollyit.net
On 7/29/2014 4:24 AM, Mutuku Ndeti wrote:
/I keep getting the error below every time I edit a certain content type. I have tried Uninstalling / reinstalling the taxonomy image module but it's not fixing the issue. The / field_data_taxonomy_image tabel does not exist in the database. . / PDOException/: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'field_data_taxonomy_image' doesn't exist: SELECT DISTINCT field_data_taxonomy_image0.entity_type AS entity_type, field_data_taxonomy_image0.entity_id AS entity_id, field_data_taxonomy_image0.revision_id AS revision_id, field_data_taxonomy_image0.bundle AS bundle FROM {field_data_taxonomy_image} field_data_taxonomy_image0 WHERE (field_data_taxonomy_image0.taxonomy_image_fid = :db_condition_placeholder_0) AND (field_data_taxonomy_image0.deleted = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => 256 [:db_condition_placeholder_1] => 0 ) in /field_sql_storage_field_storage_query()/ (line /585/ of /modules/field/modules/field_sql_storage/field_sql_storage.module/).
-- How can I fix this?
thanks