diff --git a/core/modules/image/image.install b/core/modules/image/image.install index fd33c5d..e6034a1 100644 --- a/core/modules/image/image.install +++ b/core/modules/image/image.install @@ -143,7 +143,7 @@ function _image_update_get_style_with_effects(array $style) { function image_update_dependencies() { // Convert the format of the 'default_image' setting after fields and // instances have been moved to the config system. - $dependencies['image'][8002] = array( + $dependencies['image'][8003] = array( 'field' => 8003, ); return $dependencies; @@ -174,20 +174,18 @@ function image_update_8000() { /** * Remove the {image_styles} and {image_effects} tables. - * + */ function image_update_8001() { db_drop_table('image_styles'); db_drop_table('image_effects'); -}*/ +} /** * Moves image module settings from variable to config. * * @ingroup config_upgrade */ -function image_update_8001() { - db_drop_table('image_styles'); - db_drop_table('image_effects'); +function image_update_8002() { update_variables_to_config('image.settings', array( 'image_style_preview_image' => 'preview_image', )); @@ -197,7 +195,7 @@ function image_update_8001() { /** * Convert image field's default image configuration to the new format. */ -function image_update_8002() { +function image_update_8003() { foreach (config_get_storage_names_with_prefix('field.field.') as $config_name) { $field_config = config($config_name); if ($field_config->get('type') == 'image') {