function password_policy_update_7109 in Password Policy 7
Add {password_policy_excluded_authentication_modules} table.
File
- ./
password_policy.install, line 517 - Password Policy module installation and upgrade code.
Code
function password_policy_update_7109() {
$schema['password_policy_excluded_authentication_modules'] = array(
'description' => 'Authentication modules to be excluded from specified policies.',
'fields' => array(
'pid' => array(
'description' => 'Policy ID.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'module' => array(
'description' => 'Module.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
),
),
'foreign keys' => array(
'password_policy' => array(
'table' => 'password_policy',
'columns' => array(
'pid' => 'pid',
),
),
'module' => array(
'table' => 'authmap',
'columns' => array(
'module' => 'module',
),
),
),
'primary key' => array(
'module',
'pid',
),
);
db_create_table('password_policy_excluded_authentication_modules', $schema['password_policy_excluded_authentication_modules']);
}