You are here

function background_process_update_7104 in Background Process 7

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

Change start column from double to numeric.

File

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

Code

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

    // 'start' exists, so this update may have been run before when this was
    // called background_process_update_6104(). However, this update should be
    // safe to run multiple times, so let's just run it again...
    db_change_field('background_process', 'start', 'start', array(
      'type' => 'numeric',
      'precision' => '16',
      'scale' => '6',
      'not null' => FALSE,
    ));
  }
}