summaryrefslogtreecommitdiffstats
path: root/print_mail
diff options
context:
space:
mode:
authorJoao Ventura2013-07-08 16:51:08 +0000
committerJoao Ventura2013-07-08 16:51:08 +0000
commit347edc61ebc10f7698a30f2ac1e3081c5f4d8604 (patch)
tree19008ee91efcae2dcaca16a565d327e25bc3f593 /print_mail
parent462241284190d29d83b8f2837aca5908307e015e (diff)
Issue #1927110: Increase path field size in *_page_counter to 255.
Diffstat (limited to 'print_mail')
-rw-r--r--print_mail/print_mail.install12
1 files changed, 11 insertions, 1 deletions
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')));
+}