function user_update_7014 in Drupal 7
Rename the 'post comments without approval' permission.
In Drupal 7, this permission has been renamed to 'skip comment approval'.
Related topics
File
- modules/user/ user.install, line 817 
- Install, update and uninstall functions for the user module.
Code
function user_update_7014() {
  db_update('role_permission')
    ->fields(array(
    'permission' => 'skip comment approval',
  ))
    ->condition('permission', 'post comments without approval')
    ->execute();
  return t("Renamed the 'post comments without approval' permission to 'skip comment approval'.");
}