Project

General

Profile

Revision 082b75eb

Added by Assos Assos over 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/job_scheduler/job_scheduler.install
5 5
 * Schema definitions install/update/uninstall hooks.
6 6
 */
7 7

  
8
/**
9
 * Implements hook_uninstall().
10
 */
11
function job_scheduler_uninstall() {
12

  
13
  db_delete('variable')
14
    ->condition('name', 'job_scheduler_class_%', 'like')
15
    ->execute();
16

  
17
  variable_del('job_scheduler_rebuild_all');
18
}
19

  
8 20
/**
9 21
 * Implements hook_schema().
10 22
 */
......
67 79
        'default' => 0,
68 80
        'description' => 'Timestamp when job expires.',
69 81
      ),
70
      'created' => array(
71
        'type' => 'int',
72
        'not null' => TRUE,
73
        'default' => 0,
74
        'description' => 'Timestamp when the item was created.',
75
      ),
76 82
      'last' => array(
77 83
        'type' => 'int',
78 84
        'unsigned' => TRUE,
......
144 150
}
145 151

  
146 152
/**
147
 * Add fields: item_id, crontab, data, expire
153
 * Add fields: item_id, crontab, data, expire.
148 154
 */
149 155
function job_scheduler_update_7101() {
150 156
  $spec = array(
......
178 184
  );
179 185
  db_add_field('job_schedule', 'item_id', $spec, array('primary key' => array('item_id')));
180 186
}
187

  
188
/**
189
 * Drop field: created.
190
 */
191
function job_scheduler_update_7102() {
192
  if (db_field_exists('job_schedule', 'created')) {
193
    db_drop_field('job_schedule', 'created');
194
  }
195
}

Also available in: Unified diff