Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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).
Comment | File | Size | Author |
---|---|---|---|
#1 | 1836020-check-before-drop-media-update.patch | 505 bytes | populist |
Comments
Comment #1
populist CreditAttribution: populist commentedHere is a patch that fixes the problem by adding a db_table_exists('media_list_type') check:
Comment #2
ParisLiakos CreditAttribution: ParisLiakos commentedMakses sense.
commited
http://drupalcode.org/project/media.git/commit/402aab0
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commenteddouble post