? .DS_Store
? check_required_modules.patch
? default_db_type.patch
? first-account-message.patch
? link-to-perm.patch
? perm.patch
? wider-sid-column.patch
? profiles/.DS_Store
? profiles/drubb
? sites/all
? sites/localhost
Index: modules/statistics/statistics.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/statistics/statistics.install,v
retrieving revision 1.6
diff -u -p -r1.6 statistics.install
--- modules/statistics/statistics.install	1 Sep 2006 07:40:08 -0000	1.6
+++ modules/statistics/statistics.install	7 Nov 2006 17:46:34 -0000
@@ -10,7 +10,7 @@ function statistics_install() {
     case 'mysqli':
       db_query("CREATE TABLE {accesslog} (
         aid int NOT NULL auto_increment,
-        sid varchar(32) NOT NULL default '',
+        sid varchar(64) NOT NULL default '',
         title varchar(255) default NULL,
         path varchar(255) default NULL,
         url varchar(255) default NULL,
@@ -25,7 +25,7 @@ function statistics_install() {
     case 'pgsql':
       db_query("CREATE TABLE {accesslog} (
         aid serial,
-        sid varchar(32) NOT NULL default '',
+        sid varchar(64) NOT NULL default '',
         title varchar(255) default NULL,
         path varchar(255) default NULL,
         url varchar(255) default NULL,
@@ -41,6 +41,25 @@ function statistics_install() {
 }
 
 /**
+ * Changes session ID  field to VARCHAR(64) to add support for SHA-1 hashes.
+ */
+function statistics_update_1000() {
+  $ret = array();
+
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql("ALTER TABLE {accesslog} CHANGE COLUMN sid sid varchar(64) NOT NULL default ''");
+      break;
+    case 'pgsql':
+      db_change_column($ret, 'accesslog', 'sid', 'sid', 'varchar(64)', array('not null' => TRUE, 'default' => "''"));
+      break;
+  }
+
+  return $ret;
+}
+
+/**
  * Implementation of hook_uninstall().
  */
 function statistics_uninstall() {
Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.38
diff -u -p -r1.38 system.install
--- modules/system/system.install	7 Nov 2006 12:02:56 -0000	1.38
+++ modules/system/system.install	7 Nov 2006 17:46:35 -0000
@@ -3361,10 +3361,10 @@ function system_update_1013() {
   switch ($GLOBALS['db_type']) {
     case 'mysql':
     case 'mysqli':
-      $ret[] = update_sql('ALTER TABLE {sessions} CHANGE COLUMN sid sid varchar(64)');
+      $ret[] = update_sql("ALTER TABLE {sessions} CHANGE COLUMN sid sid varchar(64) NOT NULL default ''");
       break;
     case 'pgsql':
-      $ret[] = update_sql('ALTER TABLE {sessions} ALTER COLUMN sid TYPE varchar(64)');
+      db_change_column($ret, 'sessions', 'sid', 'sid', 'varchar(64)',  array('not null' => TRUE, 'default' => "''"));
       break;
   }
   return $ret;
