You are here

function calendar_ical_update_1 in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar_ical.install \calendar_ical_update_1()

File

./calendar_ical.install, line 10

Code

function calendar_ical_update_1() {
  $ret = array();
  $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = 'calendar_ical'");
  if (db_table_exists('cache_calendar_ical')) {
    $ret[] = update_sql("INSERT INTO {cache} (cid, data, expire, created, headers) SELECT cid, data, expire, created, headers FROM {cache_calendar_ical}");
    $ret[] = update_sql('DROP TABLE {cache_calendar_ical}');
  }
  return $ret;
}