- Patch #107824 by Dave Reid, AlexisWilke et al: convert certain URL fields from VARCHAR to TEXT to avoid errors.
parent
cadd9bd54c
commit
939df0b3cd
|
@ -75,10 +75,8 @@ function dblog_schema() {
|
||||||
'description' => 'URL of the origin of the event.',
|
'description' => 'URL of the origin of the event.',
|
||||||
),
|
),
|
||||||
'referer' => array(
|
'referer' => array(
|
||||||
'type' => 'varchar',
|
'type' => 'text',
|
||||||
'length' => 128,
|
|
||||||
'not null' => FALSE,
|
'not null' => FALSE,
|
||||||
'default' => '',
|
|
||||||
'description' => 'URL of referring page.',
|
'description' => 'URL of referring page.',
|
||||||
),
|
),
|
||||||
'hostname' => array(
|
'hostname' => array(
|
||||||
|
@ -106,12 +104,12 @@ function dblog_schema() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow NULL values for links.
|
* Allow NULL values for links and longer referers.
|
||||||
*/
|
*/
|
||||||
function dblog_update_7001() {
|
function dblog_update_7001() {
|
||||||
$ret = array();
|
$ret = array();
|
||||||
db_change_field($ret, 'watchdog', 'link', 'link', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => ''));
|
db_change_field($ret, 'watchdog', 'link', 'link', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => ''));
|
||||||
db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => ''));
|
db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'text', 'not null' => FALSE));
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,8 +76,7 @@ function statistics_schema() {
|
||||||
'description' => 'Internal path to page visited (relative to Drupal root.)',
|
'description' => 'Internal path to page visited (relative to Drupal root.)',
|
||||||
),
|
),
|
||||||
'url' => array(
|
'url' => array(
|
||||||
'type' => 'varchar',
|
'type' => 'text',
|
||||||
'length' => 255,
|
|
||||||
'not null' => FALSE,
|
'not null' => FALSE,
|
||||||
'description' => 'Referrer URI.',
|
'description' => 'Referrer URI.',
|
||||||
),
|
),
|
||||||
|
@ -119,3 +118,11 @@ function statistics_schema() {
|
||||||
return $schema;
|
return $schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allow longer referrers.
|
||||||
|
*/
|
||||||
|
function statistics_update_7000() {
|
||||||
|
$ret = array();
|
||||||
|
db_change_field($ret, 'accesslog', 'url', 'url', array('type' => 'text', 'not null' => FALSE));
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue