You are here

function print_pdf_update_7205 in Printer, email and PDF versions 7.2

Increase size of the path field in the print_pdf_page_counter table.

File

print_pdf/print_pdf.install, line 325
Install, update and uninstall functions for the print_pdf module.

Code

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