Projet

Général

Profil

Révision 950416da

Ajouté par Assos Assos il y a plus de 5 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/rules/rules_scheduler/rules_scheduler.install
31 31
        'not null' => TRUE,
32 32
      ),
33 33
      'data' => array(
34
        'type' => 'text',
34
        'type' => 'blob',
35
        'size' => 'big',
35 36
        'not null' => FALSE,
36 37
        'serialize' => TRUE,
37 38
        'description' => 'The whole, serialized evaluation data.',
......
47 48
        'type' => 'varchar',
48 49
        'length' => '255',
49 50
        'not null' => FALSE,
50
        'description' => 'The fully qualified class name of a the queue item handler.',
51
        'description' => 'The fully-qualified class name of the queue item handler.',
51 52
      ),
52 53
    ),
53 54
    'primary key' => array('tid'),
......
61 62
  return $schema;
62 63
}
63 64

  
65
/**
66
 * Implements hook_install().
67
 */
68
function rules_scheduler_install() {
69
  // Create the queue to hold scheduled tasks.
70
  $queue = DrupalQueue::get('rules_scheduler_tasks', TRUE);
71
  $queue->createQueue();
72
}
73

  
74
/**
75
 * Implements hook_uninstall().
76
 */
77
function rules_scheduler_uninstall() {
78
  // Clean up after ourselves by deleting the queue and all items in it.
79
  $queue = DrupalQueue::get('rules_scheduler_tasks');
80
  $queue->deleteQueue();
81
}
82

  
64 83
/**
65 84
 * Upgrade from Rules scheduler 6.x-1.x to 7.x.
66 85
 */
......
136 155
    'type' => 'varchar',
137 156
    'length' => '255',
138 157
    'not null' => FALSE,
139
    'description' => 'The fully qualified class name of a the queue item handler.',
158
    'description' => 'The fully-qualified class name of the queue item handler.',
140 159
  ));
141 160
}
142 161

  
......
154 173
  }
155 174
}
156 175

  
176
/**
177
 * Use blob:big for rules_scheduler.data for compatibility with PostgreSQL.
178
 */
179
function rules_scheduler_update_7205() {
180
  if (db_field_exists('rules_scheduler', 'data')) {
181
    db_change_field('rules_scheduler', 'data', 'data', array(
182
      'type' => 'blob',
183
      'size' => 'big',
184
      'not null' => FALSE,
185
      'serialize' => TRUE,
186
      'description' => 'The whole, serialized evaluation data.',
187
    ));
188
  }
189
}
190

  
157 191
/**
158 192
 * Rules upgrade callback for mapping the action name.
159 193
 */

Formats disponibles : Unified diff