You are here

function media_update_7006 in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 media.install \media_update_7006()
  2. 7 media.install \media_update_7006()
  3. 7.2 media.install \media_update_7006()

Rename the file table to file_managed in case head2head was used.

File

./media.install, line 281
Install, update and uninstall functions for the Media module.

Code

function media_update_7006() {
  if (db_table_exists('file') && !db_table_exists('file_managed')) {
    db_rename_table('file', 'file_managed');
  }
}