You are here

function content_update_2 in Content Construction Kit (CCK) 5

Add storage for per-field help text.

File

./content.install, line 117

Code

function content_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_add_column($ret, 'node_field_instance', 'description', 'text', array(
        'not null' => TRUE,
        'default' => '',
      ));
      break;
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {node_field_instance} ADD COLUMN description mediumtext NOT NULL");
      break;
  }
  return $ret;
}