function dblog_update_8001

Make *id fields unsigned.

Related topics

File

drupal/core/modules/dblog/dblog.install, line 113
Install, update and uninstall functions for the dblog module.

Code

function dblog_update_8001() {
  db_drop_index('watchdog', 'uid');
  db_change_field('watchdog', 'uid', 'uid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'description' => 'The {users}.uid of the user who triggered the event.',
  ), array(
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
    ),
  ));
}