You are here

function smileys_update_6001 in Smileys 6

Implementation(s) of hook_update_N().

File

./smileys.install, line 164

Code

function smileys_update_6001() {
  $ret = array();
  if (!db_column_exists('smileys', 'weight')) {
    $ret[] = update_sql("ALTER TABLE {smileys} ADD weight TINYINT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER description");
  }
  return $ret;
}