You are here

function protected_node_update_3 in Protected Node 6

Same name and namespace in other branches
  1. 5 protected_node.install \protected_node_update_3()

Implementation of hook_update_N().

We don't need a variable length column just 40 char one for the sha1 hash

File

./protected_node.install, line 169

Code

function protected_node_update_3() {
  $ret = array();
  db_change_field($ret, 'protected_nodes', 'passwd', 'passwd', array(
    'type' => 'char',
    'length' => 40,
    'not null' => TRUE,
  ));
  return $ret;
}