You are here

function backup_migrate_update_6301 in Backup and Migrate 6.3

Switch the cron switch to text.

File

./backup_migrate.install, line 585
Install hooks for Backup and Migrate.

Code

function backup_migrate_update_6301() {
  $ret = array();
  db_change_field($ret, 'backup_migrate_schedules', 'cron', 'cron', array(
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
  ));
  db_add_field($ret, 'backup_migrate_schedules', 'cron_schedule', array(
    'description' => t('The cron schedule to run on.'),
    'type' => 'varchar',
    'length' => 255,
    'default' => '0 4 * * *',
    'not null' => TRUE,
  ));
  return $ret;
}