function user_restrictions_update_7100 in User restrictions 7
Adds the sub-type field to the database table.
File
- ./
user_restrictions.install, line 78 - Implementing schema for the User restrictions module.
Code
function user_restrictions_update_7100(&$sandbox) {
if (!db_field_exists('user_restrictions', 'subtype')) {
db_add_field('user_restrictions', 'subtype', array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
), array(
'indexes' => array(
'subtype' => array(
array(
'subtype',
32,
),
),
),
));
}
}