diff options
| author | joschiwald <joschiwald.trinity@gmail.com> | 2018-01-02 20:53:59 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2018-01-03 15:14:49 +0100 |
| commit | 425b181544a21d2246fdf0261ba76a37e2510883 (patch) | |
| tree | 3c79e693b6da1ba3d6241d8a0235a8f5f103484b /sql/base/auth_database.sql | |
| parent | 4e9d34691997b7dded45c7857b67413af7ff7c6f (diff) | |
DB: Made timestamp columns, those can have no date, nullable instead of saving invalid date '0000-00-00 00:00:00'
* This makes our tables mysql strict mode conform
Ref #21113
(cherry picked from commit c2aead1da5b6cb9a3a69e276b3f12a2c76b9ab86)
Diffstat (limited to 'sql/base/auth_database.sql')
| -rw-r--r-- | sql/base/auth_database.sql | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql index 5ea1ff182fa..7273a4c0147 100644 --- a/sql/base/auth_database.sql +++ b/sql/base/auth_database.sql @@ -38,7 +38,7 @@ CREATE TABLE `account` ( `failed_logins` int(10) unsigned NOT NULL DEFAULT '0', `locked` tinyint(3) unsigned NOT NULL DEFAULT '0', `lock_country` varchar(2) NOT NULL DEFAULT '00', - `last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `last_login` timestamp NULL, `online` tinyint(3) unsigned NOT NULL DEFAULT '0', `expansion` tinyint(3) unsigned NOT NULL DEFAULT '2', `mutetime` bigint(20) NOT NULL DEFAULT '0', @@ -1824,7 +1824,8 @@ INSERT INTO `updates` VALUES ('2017_08_01_00_auth.sql','6ECE808AF52345177189E962C0606B769B6806A6','RELEASED','2017-08-01 01:11:28',0), ('2017_10_13_00_auth.sql','87674E0D166AC60E3725B445714427892E42C6FE','RELEASED','2017-10-13 22:00:22',0), ('2017_10_29_00_auth.sql','0AF3E442B2F312D4F396EC07517B156EF2BFF0F4','RELEASED','2017-10-08 12:30:47',16), -('2017_12_17_00_auth.sql','2CD99730D4D32DBF0584CD5B1AA6F8F4AE3DA975','RELEASED','2017-12-17 03:17:39',52); +('2017_12_17_00_auth.sql','2CD99730D4D32DBF0584CD5B1AA6F8F4AE3DA975','RELEASED','2017-12-17 03:17:39',52), +('2018_01_03_00_auth_2018_01_02_00_auth.sql','08AF5DAB45515B681B738DA17FA414C7C7CCA44E','RELEASED','2018-01-02 20:40:37',0); /*!40000 ALTER TABLE `updates` ENABLE KEYS */; UNLOCK TABLES; |
