diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 8ec6ee09a6..ecff72aa5e 100755 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,6 +1,7 @@ [0.9.2] - Fixed sorting bug in currentusers.php - Cleaned up error reporting and form in newaccount.php - Fixed viewaccounts.php not updated to the new accounts table. + - Fixed access_log not being updated durring logouts. [0.9.1] - Fixed a few missing variables with templates. - editing a product in the inventory program now forwards you back to the category diff --git a/setup/createtables_mysql.inc.php b/setup/createtables_mysql.inc.php index 14459b96e2..0a5170892d 100644 --- a/setup/createtables_mysql.inc.php +++ b/setup/createtables_mysql.inc.php @@ -82,11 +82,11 @@ $db->query($sql); $sql = "create table access_log ( - sessionid varchar(30), - loginid varchar(30), - ip varchar(30), - li int, - lo int + sessionid varchar(255), + loginid varchar(30), + ip varchar(30), + li int, + lo int )"; $db->query($sql); diff --git a/setup/createtables_pgsql.inc.php b/setup/createtables_pgsql.inc.php index 37931a8cf9..e7713448b2 100644 --- a/setup/createtables_pgsql.inc.php +++ b/setup/createtables_pgsql.inc.php @@ -82,7 +82,7 @@ $db->query($sql); $sql = "create table access_log ( - sessionid varchar(30), + sessionid varchar(255), loginid varchar(30), ip varchar(30), li int, diff --git a/setup/upgradetables_mysql.inc.php b/setup/upgradetables_mysql.inc.php index 29f2f8df09..1d39caf3d5 100644 --- a/setup/upgradetables_mysql.inc.php +++ b/setup/upgradetables_mysql.inc.php @@ -185,6 +185,20 @@ } } + + function v0_9_1to0_9_2() + { + global $currentver, $newversion, $db; + $didupgrade = True; + if ($currentver == "9072000") { + $db->query("alter table access_log change lo lo varchar(255)"); + } + echo " \n"; + echo " Upgrade from 0.9.1 to 0.9.2 is completed.\n"; + echo " \n"; + $currentver = "0_9_2"; + } + echo "\n"; echo " \n"; echo " \n"; @@ -195,6 +209,7 @@ v8212000to9052000(); v9052000to9072000(); v9072000to0_9_1(); + v0_9_1to0_9_2(); $db->query("update applications set app_version='$newversion' where (app_name='admin' or app_name='filemanager' or app_name='addressbook' or app_name='todo' or app_name='calendar' or app_name='email' or app_name='nntp' or app_name='cron_apps')"); if (!$didupgrade == True){
 Table Upgrades