Active
Project:
Storage API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2013 at 21:37 UTC
Updated:
17 Feb 2016 at 07:38 UTC
Jump to comment: Most recent
Hello,
It looks like storage_api doesn't export the storage class for a field in features.
Here's what I see in a feature file:
'settings' => array(
'default_image' => 0,
'storage_class' => array(
'class_id' => '2',
'current_class_id' => '2',
),
'uri_scheme' => 'storage-field-cast-image',
),
This is using a class_id, which can change between environments. It doesn't look like there's a way to export the class with the feature.
Thanks,
Eric
Comments
Comment #1
paulmckibbenI would love to see the storage classes and containers exportable in a feature. Any chance this can happen?
Comment #2
dwatts3624 commented+1 on this. Our dev team would be open to helping with this with some direction.
Comment #3
Andre-B@dwatts3624 https://drupal.org/node/928026 might be a head start for getting stuff exportable. But I am not that deep into storage_api to help you further.
edit: wrong link.
Comment #4
Andre-B@dwatts3624 has there been any progress so far?
Comment #5
jiv_e commentedComment #6
PatchRanger commentedMay be it is better to turn Storage API models into entities (https://www.drupal.org/project/entity)? It will automatically (as far as I understand it) make them exportable via Features.
Comment #7
perignon commentedA lot of work is necessary to improve the exportability of Storage API. To do this, we will be looking at making more use of single fields in the DB tables and Drupal variables.