diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-20 19:19:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-20 19:19:13 +0000 |
commit | 0431f0700f204ab9941a4791c887024aa4f83ceb (patch) | |
tree | 9d2f013bdc3a619164820adcd398b0f344d3df18 /update.php | |
parent | b79b831152f79b412ce35c91193332c66ba94580 (diff) | |
download | brdo-0431f0700f204ab9941a4791c887024aa4f83ceb.tar.gz brdo-0431f0700f204ab9941a4791c887024aa4f83ceb.tar.bz2 |
- Committed Jeremy's session patch: this brings us one step closer to having
session for anonymous users.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/update.php b/update.php index a382668e1..feff9f2e0 100644 --- a/update.php +++ b/update.php @@ -41,7 +41,8 @@ $mysql_updates = array( "2003-06-08" => "update_57", "2003-06-08: first update since Drupal 4.2.0 release" => "update_58", "2003-08-05" => "update_59", - "2003-08-15" => "update_60" + "2003-08-15" => "update_60", + "2003-08-20" => "update_61" ); function update_32() { @@ -331,6 +332,23 @@ function update_60() { update_sql("ALTER TABLE forum DROP icon"); } +function update_61() { + update_sql("CREATE TABLE IF NOT EXISTS sessions ( + uid int(10) unsigned NOT NULL, + sid varchar(32) NOT NULL default '', + hostname varchar(128) NOT NULL default '', + timestamp int(11) NOT NULL default '0', + session text, + KEY uid (uid), + KEY sid (sid(4)), + KEY timestamp (timestamp) + )"); + + update_sql("ALTER TABLE users DROP session;"); + update_sql("ALTER TABLE users DROP hostname;"); + update_sql("ALTER TABLE users DROP sid;"); +} + function _update_next_thread($structure, $parent) { do { $val++; |