Commit 347edc61 authored by jcnventura's avatar jcnventura

Issue #1927110: Increase path field size in *_page_counter to 255.

parent 46224128
......@@ -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')));
}
......@@ -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')));
}
......@@ -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')));
}
......@@ -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')));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment