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.
Hi
We're building an install profile that includes sarnia.
We're hitting some timing issues with the way sarnia uses the {sarnia_entity_type} table to store entity types.
Basically hook_entity_info is being called and sarnia_entity_info is running before drupal_install_schema('sarnia') is getting a chance to run.
What this leads to is an exception being thrown because the table doesn't exist.
The error is something like:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.sarnia_entity_type' doesn't exist: SELECT label, machine_name, [error]
search_api_server, search_api_index, id_field FROM {sarnia_entity_type};
Patch to follow once I've got an nid.
Comment | File | Size | Author |
---|---|---|---|
#4 | 1779762-sarnia-entity-types-4.patch | 579 bytes | jmdeleon |
#2 | 1779762-sarnia-entity-types.patch | 579 bytes | larowlan |
#1 | 1779762-sarnia-entity-types.patch | 768 bytes | larowlan |
Comments
Comment #1
larowlanComment #2
larowlanIgnore that patch, its malformed, this one is correct
Comment #3
gaele CreditAttribution: gaele commentedWorks for me.
Comment #4
jmdeleon CreditAttribution: jmdeleon commentedRe-rolled this patch against a more recent dev version (2015-Jun-11). A good check to put in, as previous patches were working fine for me.
Comment #6
jmdeleon CreditAttribution: jmdeleon commented