You are here

function smileys_update_2 in Smileys 5

File

./smileys.install, line 71

Code

function smileys_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_add_column($ret, 'smileys', 'promote_to_box', 'INT2', array(
        'default' => '1',
        'not null' => TRUE,
        'after' => 'standalone',
      ));
      break;
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {smileys} ADD COLUMN promote_to_box tinyint(1) NOT NULL DEFAULT 1 AFTER standalone");
  }
  return $ret;
}