You are here

function content_update_6006 in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 content.install \content_update_6006()

Make sure the 'locked' column is NOT NULL (error in previous content_update_6005().

File

./content.install, line 451

Code

function content_update_6006() {
  if ($abort = content_check_update()) {
    return $abort;
  }
  $ret = array();
  drupal_load('module', 'content');
  db_change_field($ret, content_field_tablename(), 'locked', 'locked', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  ));
  variable_set('content_schema_version', 6006);
  return $ret;
}