You are here

function search_files_db_rename_column_ifexists in Search Files 6.2

Same name and namespace in other branches
  1. 7.2 search_files.install \search_files_db_rename_column_ifexists()
2 calls to search_files_db_rename_column_ifexists()
search_files_directories_update_6203 in ./search_files_directories.install
search_files_directories_update_6204 in ./search_files_directories.install

File

./search_files.install, line 89
Installation and update procedures for the search_files module.

Code

function search_files_db_rename_column_ifexists(&$ret, $table, $column, $new_name, $spec) {
  if (db_table_exists($table)) {
    if (db_column_exists($table, $column)) {
      db_change_field($ret, $table, $column, $new_name, $spec);
    }
  }
}