function password_policy_update_6001 in Password Policy 6
File
- ./
password_policy.install, line 245 - File module installation and upgrade code.
Code
function password_policy_update_6001() {
$ret = array();
db_create_table($ret, 'password_policy_force_change', array(
'description' => t('Forced password reset status.'),
'fields' => array(
'uid' => array(
'type' => 'int',
'not null' => TRUE,
),
'force_change' => array(
'type' => 'int',
'default' => 0,
),
),
'indexes' => array(
'uid' => array(
'uid',
),
),
));
$ret[] = update_sql('INSERT INTO {password_policy_force_change} (uid) SELECT DISTINCT uid FROM {users} WHERE uid > 0');
return $ret;
}