summaryrefslogtreecommitdiffstats
path: root/db updates.sql
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-10 16:57:02 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-03-10 16:57:02 -0700
commit8cc65436b7d5552af54c8d93feed85f63ad7fa4e (patch)
tree5c1fd1ceaf3977b58248a76cd8077c2a93887de2 /db updates.sql
parent0de9fd4ce81392508ce9648e2ae279912d7f9ed5 (diff)
downloadpathery-8cc65436b7d5552af54c8d93feed85f63ad7fa4e.tar.xz
Remove on update CURRENT_TIMESTAMP on dateLogin
Diffstat (limited to 'db updates.sql')
-rw-r--r--db updates.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/db updates.sql b/db updates.sql
index 7bd16c1..2e04942 100644
--- a/db updates.sql
+++ b/db updates.sql
@@ -1,3 +1,6 @@
+-- Remove 'on update CURRENT_TIMESTAMP' from dateLogin
+ALTER TABLE `users` CHANGE `dateLogin` `dateLogin` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
+
ALTER TABLE `mapOfTheDay` DROP INDEX `UniqueTypeDate` ,
ADD UNIQUE `UniqueTypeDate` ( `mapDate` , `mapType` );