You are here

function background_process_update_7106 in Background Process 8

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

Implements to Change schema to SQL 99 compliance.

File

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

Code

function background_process_update_7106() {
  if (db_field_exists('background_process', 'start')) {
    db_change_field('background_process', 'start', 'start_stamp', [
      'type' => 'varchar',
      'length' => '18',
      'not null' => FALSE,
    ]);
  }
  if (db_field_exists('background_process', 'status')) {
    db_change_field('background_process', 'status', 'exec_status', [
      'type' => 'int',
      'size' => 'normal',
      'not null' => TRUE,
      'default' => 0,
    ]);
  }
}