You are here

function password_policy_update_7101 in Password Policy 7

Update schema left unchanged from D6 -> D7 migration.

File

./password_policy.install, line 307
Password Policy module installation and upgrade code.

Code

function password_policy_update_7101() {
  db_change_field('password_policy', 'expiration', 'expiration', array(
    'description' => 'The passwords will expire after this number of days.',
    'type' => 'int',
    'default' => 0,
  ), array());
  db_change_field('password_policy_history', 'pass', 'pass', array(
    'description' => 'User\'s password (hashed).',
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
  ), array());
}