You are here

function content_update_3 in Content Construction Kit (CCK) 5

Add information about where data is stored.

File

./content.install, line 137

Code

function content_update_3() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_add_column($ret, 'node_field', 'db_storage', 'integer', array(
        'not null' => TRUE,
        'default' => '0',
      ));
      break;
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {node_field} ADD COLUMN db_storage int NOT NULL default 0");
      break;
  }
  return $ret;
}