You are here

function persistent_login_update_7001 in Persistent Login 7

Change length of series and token fields to accomodate longer d7 hashes.

File

./persistent_login.install, line 95
Implementation of installation/uninstallation hooks.

Code

function persistent_login_update_7001() {
  db_change_field('persistent_login', 'series', 'series', array(
    'type' => 'varchar',
    'length' => 43,
    'not null' => TRUE,
  ));
  db_change_field('persistent_login', 'token', 'token', array(
    'type' => 'varchar',
    'length' => 43,
    'not null' => TRUE,
  ));
  db_change_field('persistent_login_history', 'series', 'series', array(
    'type' => 'varchar',
    'length' => 43,
    'not null' => TRUE,
  ));
  db_change_field('persistent_login_history', 'token', 'token', array(
    'type' => 'varchar',
    'length' => 43,
    'not null' => TRUE,
  ));
}