function media_update_7006 in D7 Media 7.3
Same name and namespace in other branches
- 7.4 media.install \media_update_7006()
- 7 media.install \media_update_7006()
- 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');
}
}