You are here

function user_update_7016 in Drupal 7

Update the database to match the schema.

Related topics

File

modules/user/user.install, line 850
Install, update and uninstall functions for the user module.

Code

function user_update_7016() {

  // Add field default.
  db_change_field('users', 'uid', 'uid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
}