The problem in media_update_7205() is that it will db_drop_table('media_list_type') wether or not that table exists. This generates errors for folks already in Media 2.x:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'slantview.media_type' doesn't exist: SELECT mt.* FROM {media_type} mt ORDER BY weight ASC; Array ( ) in media_update_7208() (line 830 of /srv/bindings/d15f48ff00e742b8b77db8741ddf3036/code/profiles/panopoly/modules/contrib/media/media.install).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

populist’s picture

Status: Active » Needs review
FileSize
505 bytes

Here is a patch that fixes the problem by adding a db_table_exists('media_list_type') check:

ParisLiakos’s picture

Status: Needs review » Fixed
ParisLiakos’s picture

double post

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.