From 4cb1ca7b840b9fb4bd63fe31d1f1717fb0a56dd8 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 19 Feb 2018 18:13:33 +0000 Subject: [PATCH] Fixed a timestamp problem related to WampServer. --- WEB-INF/templates/footer.tpl | 2 +- mysql.sql | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 58b3b77d..17cd70c7 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.23.4001 | Copyright © Anuko | +  Anuko Time Tracker 1.17.24.4002 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/mysql.sql b/mysql.sql index a09c3f4a..78e09a80 100644 --- a/mysql.sql +++ b/mysql.sql @@ -14,7 +14,7 @@ # CREATE TABLE `tt_teams` ( `id` int(11) NOT NULL auto_increment, # team id - `timestamp` timestamp NOT NULL, # modification timestamp + `timestamp` timestamp default CURRENT_TIMESTAMP, # modification timestamp `name` varchar(80) default NULL, # team name `currency` varchar(7) default NULL, # team currency symbol `decimal_mark` char(1) NOT NULL default '.', # separator in decimals @@ -42,17 +42,17 @@ CREATE TABLE `tt_teams` ( # Structure for table tt_users. This table is used to store user properties. # CREATE TABLE `tt_users` ( - `id` int(11) NOT NULL auto_increment, # user id - `timestamp` timestamp NOT NULL, # modification timestamp - `login` varchar(50) COLLATE utf8_bin NOT NULL, # user login - `password` varchar(50) default NULL, # password hash - `name` varchar(100) default NULL, # user name - `team_id` int(11) NOT NULL, # team id - `role` int(11) default '4', # user role ("manager", "co-manager", "client", or "user") - `client_id` int(11) default NULL, # client id for "client" user role - `rate` float(6,2) NOT NULL default '0.00', # default hourly rate - `email` varchar(100) default NULL, # user email - `status` tinyint(4) default '1', # user status + `id` int(11) NOT NULL auto_increment, # user id + `timestamp` timestamp default CURRENT_TIMESTAMP, # modification timestamp + `login` varchar(50) COLLATE utf8_bin NOT NULL, # user login + `password` varchar(50) default NULL, # password hash + `name` varchar(100) default NULL, # user name + `team_id` int(11) NOT NULL, # team id + `role` int(11) default '4', # user role ("manager", "co-manager", "client", or "user") + `client_id` int(11) default NULL, # client id for "client" user role + `rate` float(6,2) NOT NULL default '0.00', # default hourly rate + `email` varchar(100) default NULL, # user email + `status` tinyint(4) default '1', # user status PRIMARY KEY (`id`) ); -- 2.20.1