From c609afdd78ff6f41d1c127e22629ff3136880495 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Thu, 9 Sep 2004 06:29:07 +0000 Subject: Patch for bug 257303: convert lastused field in logincookies from timestamp to datetime; patch by Tomas Kopal ; r=vladd, a=justdave. --- checksetup.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index 33ad92539..0d1ca477a 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1782,7 +1782,7 @@ $table{logincookies} = 'cookie mediumint not null auto_increment primary key, userid mediumint not null, ipaddr varchar(40) NOT NULL, - lastused timestamp, + lastused DATETIME NOT NULL, index(lastused)'; @@ -4465,6 +4465,13 @@ if (! $sth->rows) { "VALUES(1,'Unclassified','Unassigned to any classifications')"); } +# 2004-08-29 - Tomas.Kopal@altap.cz, bug 257303 +# Change logincookies.lastused type from timestamp to datetime +if (($fielddef = GetFieldDef("logincookies", "lastused")) && + $fielddef->[1] =~ /^timestamp/) { + ChangeFieldType ('logincookies', 'lastused', 'DATETIME NOT NULL'); +} + # # Final checks... -- cgit v1.2.3-24-g4f1b