You are here

function print_mail_update_7103 in Printer, email and PDF versions 7

Increase size of the path field in the print_mail_page_counter table

File

print_mail/print_mail.install, line 208
Install, update and uninstall functions for the print_mail module.

Code

function print_mail_update_7103(&$sandbox) {
  db_drop_primary_key('print_mail_page_counter');
  db_change_field('print_mail_page_counter', 'path', 'path', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'description' => 'Page path',
  ), array(
    'primary key' => array(
      'path',
    ),
  ));
}