You are here

function system_update_7050 in Drupal 7

Change {batch}.id column from serial to regular int.

Related topics

File

modules/system/system.install, line 2508
Install, update and uninstall functions for the system module.

Code

function system_update_7050() {
  db_change_field('batch', 'bid', 'bid', array(
    'description' => 'Primary Key: Unique batch ID.',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
  ));
}