You are here

function revision_scheduler_update_7100 in Revision scheduler 7

Add the {revision_scheduler}.uid column.

File

./revision_scheduler.install, line 104
Install, update, and uninstall functions for the revision_scheduler module.

Code

function revision_scheduler_update_7100() {
  if (!db_field_exists('revision_scheduler', 'uid')) {
    $schema['fields']['uid'] = array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
      'description' => 'The {users}.uid of the account who scheduled this operation.',
    );
    db_add_field('revision_scheduler', 'uid', $schema['fields']['uid']);
  }
}