You are here

function rules_scheduler_update_7202 in Rules 7.2

Fix the length of the rules_scheduler.name column.

File

rules_scheduler/rules_scheduler.install, line 135
Rules Scheduler - Installation file.

Code

function rules_scheduler_update_7202() {

  // Note that update 7201 (add the 'id' unique key') has been removed as it is
  // incorporated by 7202. For anyone that has already run the previous update
  // 7201, we have to first drop the unique key.
  db_drop_unique_key('rules_scheduler', 'id');
  db_change_field('rules_scheduler', 'config', 'config', array(
    'type' => 'varchar',
    'length' => '64',
    'default' => '',
    'not null' => TRUE,
    'description' => "The scheduled configuration's name.",
  ));
  db_add_unique_key('rules_scheduler', 'id', array(
    'config',
    'identifier',
  ));
}