diff options
author | alecpl <alec@alec.pl> | 2010-04-28 10:34:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-04-28 10:34:33 +0000 |
commit | e2402ef99af447b7cc30d661e62450cbb04b202b (patch) | |
tree | d118c0b7429404424ff6d83d906fbe25121d21fc /SQL/mysql.update.sql | |
parent | 0f3764e59223d8e9c87f30ce85425c00422ff25d (diff) |
- Set DEFAULT NULL for users.last_login
Diffstat (limited to 'SQL/mysql.update.sql')
-rw-r--r-- | SQL/mysql.update.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index f820415d3..49811c1e9 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -108,3 +108,8 @@ CREATE TABLE `contactgroupmembers` ( ) /*!40000 ENGINE=INNODB */; /*!40014 SET FOREIGN_KEY_CHECKS=1 */; + +-- Updates from version 0.4-beta + +ALTER TABLE `users` CHANGE `last_login` `last_login` datetime DEFAULT NULL; +UPDATE `users` SET `last_login` = NULL WHERE `last_login` = '1000-01-01 00:00:00'; |