diff --git a/print.install b/print.install index f4f7f1309ba7868b8d070ac9b83f92db5d959b5a..798576a6c535cd95fc84d2f2a405909e61c4b3d4 100644 --- a/print.install +++ b/print.install @@ -119,7 +119,7 @@ function print_schema() { 'fields' => array( 'path' => array( 'type' => 'varchar', - 'length' => 128, + 'length' => 255, 'not null' => TRUE, 'description' => 'Page path', ), @@ -201,3 +201,13 @@ function print_update_7202(&$sandbox) { $link_pos['help'] = 'help'; variable_set('print_html_link_pos', $link_pos); } + +/** + * Increase size of the path field in the print_page_counter table + */ +function print_update_7203(&$sandbox) { + db_drop_primary_key('print_page_counter'); + db_change_field('print_page_counter', 'path', 'path', + array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'description' => 'Page path'), + array('primary key' => array('path'))); +} diff --git a/print_epub/print_epub.install b/print_epub/print_epub.install index 245a4166fa7f2bb70a9bcc2fc93b7360f6baf414..d97aedf4c23c5ef8ee4996f7091936fc253677f4 100644 --- a/print_epub/print_epub.install +++ b/print_epub/print_epub.install @@ -95,7 +95,7 @@ function print_epub_schema() { 'fields' => array( 'path' => array( 'type' => 'varchar', - 'length' => 128, + 'length' => 255, 'not null' => TRUE, 'description' => 'Page path', ), @@ -147,3 +147,13 @@ function print_epub_update_7202(&$sandbox) { $link_pos['help'] = 'help'; variable_set('print_epub_link_pos', $link_pos); } + +/** + * Increase size of the path field in the print_epub_page_counter table + */ +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'))); +} diff --git a/print_mail/print_mail.install b/print_mail/print_mail.install index d45e2da6ffe5b9621da73091b5e2bf4dd456a05c..fd44e029d2f4832988a87314728e752ab243be68 100644 --- a/print_mail/print_mail.install +++ b/print_mail/print_mail.install @@ -112,7 +112,7 @@ function print_mail_schema() { 'fields' => array( 'path' => array( 'type' => 'varchar', - 'length' => 128, + 'length' => 255, 'not null' => TRUE, 'description' => 'Page path', ), @@ -214,3 +214,13 @@ function print_mail_update_7202(&$sandbox) { $link_pos['help'] = 'help'; variable_set('print_mail_link_pos', $link_pos); } + +/** + * Increase size of the path field in the print_mail_page_counter table + */ +function print_mail_update_7203(&$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'))); +} diff --git a/print_pdf/print_pdf.install b/print_pdf/print_pdf.install index fe218f04516ce0bc14392c1dfc1abfb92a64e6f8..3b138b58623f831d9675a1f72373f3570c15688b 100644 --- a/print_pdf/print_pdf.install +++ b/print_pdf/print_pdf.install @@ -112,7 +112,7 @@ function print_pdf_schema() { 'fields' => array( 'path' => array( 'type' => 'varchar', - 'length' => 128, + 'length' => 255, 'not null' => TRUE, 'description' => 'Page path', ), @@ -229,3 +229,13 @@ function print_pdf_update_7204(&$sandbox) { module_enable(array($tool[0]), FALSE); } } + +/** + * Increase size of the path field in the print_pdf_page_counter table + */ +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'))); +}