Commit 670ffba9 authored by Paris Liakos's avatar Paris Liakos

Dont run types migration if media_type table does not exist

parent 402aab0d
......@@ -821,6 +821,10 @@ function media_update_7207() {
* Drop the media_types table and migrate all files to the new file_entity types.
function media_update_7208() {
if (!db_table_exists('media_list_type')) {
// No types to migrate.
// @see
if (!function_exists('file_type_get_enabled_types')) {
throw new DrupalUpdateException('The File Entity module needs to be upgraded before continuing.');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment