summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-03 19:22:09 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-03 19:22:09 +0000
commit939df0b3cd0c2c80e700b886686a4b4753b8b1ec (patch)
tree5aa12890f0704455b29004cbd6268c3397f8ed85 /modules
parentcadd9bd54ca9b3e5a95661c616d35a1a0045ab46 (diff)
downloadbrdo-939df0b3cd0c2c80e700b886686a4b4753b8b1ec.tar.gz
brdo-939df0b3cd0c2c80e700b886686a4b4753b8b1ec.tar.bz2
- Patch #107824 by Dave Reid, AlexisWilke et al: convert certain URL fields from VARCHAR to TEXT to avoid errors.
Diffstat (limited to 'modules')
-rw-r--r--modules/dblog/dblog.install8
-rw-r--r--modules/statistics/statistics.install11
2 files changed, 12 insertions, 7 deletions
diff --git a/modules/dblog/dblog.install b/modules/dblog/dblog.install
index f4c80bb99..d696de068 100644
--- a/modules/dblog/dblog.install
+++ b/modules/dblog/dblog.install
@@ -75,10 +75,8 @@ function dblog_schema() {
'description' => 'URL of the origin of the event.',
),
'referer' => array(
- 'type' => 'varchar',
- 'length' => 128,
+ 'type' => 'text',
'not null' => FALSE,
- 'default' => '',
'description' => 'URL of referring page.',
),
'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() {
$ret = array();
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;
}
diff --git a/modules/statistics/statistics.install b/modules/statistics/statistics.install
index 5366b0163..e835cf317 100644
--- a/modules/statistics/statistics.install
+++ b/modules/statistics/statistics.install
@@ -76,8 +76,7 @@ function statistics_schema() {
'description' => 'Internal path to page visited (relative to Drupal root.)',
),
'url' => array(
- 'type' => 'varchar',
- 'length' => 255,
+ 'type' => 'text',
'not null' => FALSE,
'description' => 'Referrer URI.',
),
@@ -119,3 +118,11 @@ function statistics_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;
+}