Issue #1439692 by Gábor Hojtsy: update for Fixed Rename field language properties to langcode.
parent
2f167bdda3
commit
215c3e8285
|
@ -316,7 +316,7 @@ function _update_7000_field_delete_instance($field_name, $entity_type, $bundle)
|
||||||
* by the $key parameter.
|
* by the $key parameter.
|
||||||
* @ingroup update-api-7.x-to-8.x
|
* @ingroup update-api-7.x-to-8.x
|
||||||
*/
|
*/
|
||||||
function _update_8000_field_read_fields(array $conditions = array(), $key = 'id') {
|
function _update_7000_field_read_fields(array $conditions = array(), $key = 'id') {
|
||||||
$fields = array();
|
$fields = array();
|
||||||
$query = db_select('field_config', 'fc', array('fetch' => PDO::FETCH_ASSOC))
|
$query = db_select('field_config', 'fc', array('fetch' => PDO::FETCH_ASSOC))
|
||||||
->fields('fc');
|
->fields('fc');
|
||||||
|
|
|
@ -109,7 +109,7 @@ function field_sql_storage_update_8000(&$sandbox) {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Retrieve field data.
|
// Retrieve field data.
|
||||||
$fields = _update_8000_field_read_fields(array('storage_type' => 'field_sql_storage'));
|
$fields = _update_7000_field_read_fields(array('storage_type' => 'field_sql_storage'));
|
||||||
|
|
||||||
// Update schema.
|
// Update schema.
|
||||||
foreach ($fields as $field) {
|
foreach ($fields as $field) {
|
||||||
|
|
Loading…
Reference in New Issue