You are here

function content_update_6005 in Content Construction Kit (CCK) 6.2

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

Add 'locked' property for fields.

File

./content.install, line 436

Code

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