function password_policy_update_7106 in Password Policy 7
Improve naming of database field.
Rename "policy" of {password_policy} to "constraints".
File
- ./
password_policy.install, line 471 - Password Policy module installation and upgrade code.
Code
function password_policy_update_7106() {
$table_name = 'password_policy';
$old_field_name = 'policy';
$new_field_name = 'constraints';
$field_spec = array(
'description' => 'The policy\'s serialized constraints.',
'type' => 'varchar',
'length' => 1024,
'not null' => TRUE,
'default' => '',
'serialize' => TRUE,
);
db_change_field($table_name, $old_field_name, $new_field_name, $field_spec);
}