You are here

function print_epub_update_7203 in Printer, email and PDF versions 7.2

Increase size of the path field in the print_epub_page_counter table.

File

print_epub/print_epub.install, line 188
Install, update and uninstall functions for the print_epub module.

Code

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