You are here

function background_process_update_7106 in Background Process 7

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

Change schema to SQL 99 compliance.

File

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

Code

function background_process_update_7106() {
  if (db_field_exists('background_process', 'start')) {

    // 'start' exists, so this update has never run and was not run when it was
    // called background_process_update_6106(). Hence, it's safe to run.
    db_change_field('background_process', 'start', 'start_stamp', array(
      'type' => 'varchar',
      'length' => '18',
      'not null' => FALSE,
    ));
  }
  if (db_field_exists('background_process', 'status')) {

    // 'status' exists, so this update has never run and was not run when it
    // was called background_process_update_6106(). Hence, it's safe to run.
    db_change_field('background_process', 'status', 'exec_status', array(
      'type' => 'int',
      'size' => 'normal',
      'not null' => TRUE,
      'default' => 0,
    ));
  }
}