diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-07 22:27:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-07 22:27:07 +0000 |
commit | 342f95d4512d1f4562e1a6e64014b4cc8cb27f96 (patch) | |
tree | 17632216aaba58a0bb8c0f63087cc6e3af504719 /modules/system | |
parent | c400b47510f7b96f4ec436d7c4b9a696290b1541 (diff) | |
download | brdo-342f95d4512d1f4562e1a6e64014b4cc8cb27f96.tar.gz brdo-342f95d4512d1f4562e1a6e64014b4cc8cb27f96.tar.bz2 |
- Patch #78732 by webchick et al: made Drupal sessions work with sha1 session ids.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.install | 4 |
1 files changed, 2 insertions, 2 deletions
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; |