summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-09-09 08:29:07 +0200
committerjocuri%softhome.net <>2004-09-09 08:29:07 +0200
commitc609afdd78ff6f41d1c127e22629ff3136880495 (patch)
tree7406ef74960d1e07a3274cd311c3cf65ec002cd4 /checksetup.pl
parent57c78bf9f0482116464226fac37ba0adf6ff4b13 (diff)
downloadbugzilla-c609afdd78ff6f41d1c127e22629ff3136880495.tar.gz
bugzilla-c609afdd78ff6f41d1c127e22629ff3136880495.tar.xz
Patch for bug 257303: convert lastused field in logincookies from timestamp to datetime; patch by Tomas Kopal <Tomas.Kopal@altap.cz>; r=vladd, a=justdave.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl9
1 files changed, 8 insertions, 1 deletions
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...