summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-08 06:43:07 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-08 06:43:07 +0000
commit7fdebc6389cad5cbbee3dfbb0c84b7cc9c5dc990 (patch)
tree71ae561d145e28c9c70da253b8909ef6b8c20ef1 /modules/statistics/statistics.install
parent61aceff0c2cfebf577d4ef37dee04e81b553467d (diff)
downloadbrdo-7fdebc6389cad5cbbee3dfbb0c84b7cc9c5dc990.tar.gz
brdo-7fdebc6389cad5cbbee3dfbb0c84b7cc9c5dc990.tar.bz2
#991046 by carlos8f, mikey_p: Fixed PDO Exception after upgrading from Drupal 6.19 to Drupal 7 RC1
Diffstat (limited to 'modules/statistics/statistics.install')
-rw-r--r--modules/statistics/statistics.install15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/statistics/statistics.install b/modules/statistics/statistics.install
index 553b3033a..aa9b70ee9 100644
--- a/modules/statistics/statistics.install
+++ b/modules/statistics/statistics.install
@@ -34,7 +34,7 @@ function statistics_schema() {
),
'sid' => array(
'type' => 'varchar',
- 'length' => 64,
+ 'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Browser session ID of user that visited page.',
@@ -142,6 +142,19 @@ function statistics_schema() {
*/
/**
+ * Update the {accesslog}.sid column to match the length of {sessions}.sid
+ */
+function statistics_update_7000() {
+ db_change_field('accesslog', 'sid', 'sid', array(
+ 'type' => 'varchar',
+ 'length' => 128,
+ 'not null' => TRUE,
+ 'default' => '',
+ 'description' => 'Browser session ID of user that visited page.',
+ ));
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/