You are here

function node_field_update_7001 in Node Field 7.2

Change definition of type field.

File

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

Code

function node_field_update_7001() {
  $field = [
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
    'default' => 'text',
  ];
  db_change_field('node_field', 'type', 'type', $field);
}