It's time to upgrade media. We need to go from unstable1 to unstable2, but that is not all. In addition, we also need to:

* Change all media fields into file fields instead. This will require an update hook to move the data over.
* Remove the styles module and provide view modes for each style instead. These view modes needs to be configured to work togehter with the styles we have provided.

CommentFileSizeAuthor
#2 1317302-media-upgrade-2.patch94.34 KBfabsor

Comments

fabsor’s picture

In order to do this we need to resolve #1317208: Don't add fields to features

fabsor’s picture

StatusFileSize
new94.34 KB

Here is a patch that upgrades the whole thing. There is also a branch, 7.x-2.x-upgrade-media.

fabsor’s picture

Status: Active » Needs review

We now have a complete migration complete to get to media unstable2, complete with upgrade path in 7.x-2.x-upgrade-media. Please review it.

lslinnet’s picture

Where is that branch located?

fabsor’s picture

The upgrade path will be the following:

* Run a drush registry-rebuild
* Run updatedb.

We can't really avoid that unfortunately.

logaritmisk’s picture

Status: Needs review » Reviewed & tested by the community

We have been using this for some time and it works like a charm

fabsor’s picture

Status: Reviewed & tested by the community » Fixed

I have done extensive testing on this and it seems like everything is working as expected now, including upgrade path. We can finally put this behind us!

pontus_nilsson’s picture

Sorry :) to open this up again but I just got SQLSTATE[42S02]: Base table or view not found: 1146 Table '231.media_type' doesn't exist during installation.
This patch solved it http://drupal.org/node/1311828#comment-5192768

Status: Fixed » Closed (fixed)

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