You are here

function node_field_update_7005 in Node Field 7.2

Change definition of type field.

File

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

Code

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