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.
The field_views_field_default_views_data() function assumes that you are using the field_sql_storage module when it doesn't need to. This patch makes it a little bit easier to use alternative storage backend with views (for example http://drupal.org/project/field_sql_norevisions).
Comment | File | Size | Author |
---|---|---|---|
views_sql_storage_details.patch | 1.57 KB | alexpott | |
Comments
Comment #1
tim.plunkettviews_handler_field_field::click_sort()
calls_field_sql_storage_columnname()
field_views_data()
andfield_views_data_alter()
both doif ($field['storage']['type'] != 'field_sql_storage')( {continue;}
field_views_field_default_views_data()
has calls to_field_sql_storage_tablename()
and_field_sql_storage_revision_tablename()
as your patch shows, as well as_field_sql_storage_columnname()
which is left in therefile_field_views_data_views_data_alter()
,taxonomy_field_views_data_views_data_alter()
andimage_field_views_data_views_data_alter
all call_field_sql_storage_tablename()
as wellIt's a bigger problem than just this, and there is much more work to be done to resolve it.
Comment #2
giorgio79 CreditAttribution: giorgio79 commentedLooks like this should happen in D8 or D9?
Comment #3
giorgio79 CreditAttribution: giorgio79 commentedComment #4
dawehnerThis will use a method on the storage controller, which is basically supported out of the box by chx patch.
Comment #5
ShadowMonster CreditAttribution: ShadowMonster commentedI think It should be as some advanced configured option in 7.x - I'm developing field storage with is based on SQL one with some modifications for direct SQL encryption and at the moment I need hack core :/
Comment #6
pwaterz CreditAttribution: pwaterz commentedPlease checkout our fork here https://github.com/highwire/field_sql_norevisions. We believe it should fix this issue.