You are here

function friendly_register_update_7100 in Friendly Register 7

File

./friendly_register.install, line 43
Allows users to get feedback on username and email without submitting the form.

Code

function friendly_register_update_7100() {
  db_drop_index('friendly_register_flood', 'ip');
  db_change_field('friendly_register_flood', 'ip', 'ip', array(
    'type' => 'char',
    'length' => 40,
    'not null' => TRUE,
  ), array(
    'indexes' => array(
      'ip' => array(
        'ip',
        'hits',
      ),
      'lasthit' => array(
        'lasthit',
      ),
    ),
  ));
}