summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2013-07-08 16:51:08 (GMT)
committerJoao Ventura2013-07-08 16:51:08 (GMT)
commit347edc61ebc10f7698a30f2ac1e3081c5f4d8604 (patch)
tree19008ee91efcae2dcaca16a565d327e25bc3f593
parent462241284190d29d83b8f2837aca5908307e015e (diff)
Issue #1927110: Increase path field size in *_page_counter to 255.
-rw-r--r--print.install12
-rw-r--r--print_epub/print_epub.install12
-rw-r--r--print_mail/print_mail.install12
-rw-r--r--print_pdf/print_pdf.install12
4 files changed, 44 insertions, 4 deletions
diff --git a/print.install b/print.install
index f4f7f13..798576a 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 245a416..d97aedf 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 d45e2da..fd44e02 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 fe218f0..3b138b5 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')));
+}