You are here

function node_field_update_7004 in Node Field 7.2

Add machine_name field.

File

./node_field.install, line 109
Install/update/uninstall scripts for node_field module.

Code

function node_field_update_7004() {
  if (!db_field_exists('node_field', 'machine_name')) {
    $field = [
      'type' => 'varchar',
      'length' => 256,
      'not null' => TRUE,
      'default' => '',
    ];
    db_add_field('node_field', 'machine_name', $field);
  }
}