You are here

function background_process_update_7101 in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.install \background_process_update_7101()

Add status column to background_process table.

File

./background_process.install, line 132
This is the installation file for the Background Process module

Code

function background_process_update_7101() {
  if (!db_field_exists('background_process', 'status')) {

    // 'status' doesn't exist, so this update has never run and was never run
    // when it was previously called background_process_update_6101() - hence,
    // it's safe to run.
    db_add_field('background_process', 'status', array(
      'type' => 'int',
      'size' => 'normal',
      'not null' => TRUE,
      'default' => 0,
    ));
  }
}