From 342f95d4512d1f4562e1a6e64014b4cc8cb27f96 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Nov 2006 22:27:07 +0000 Subject: - Patch #78732 by webchick et al: made Drupal sessions work with sha1 session ids. --- modules/system/system.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.install b/modules/system/system.install index 061a78478..5291c0d9e 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -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; -- cgit v1.2.3