diff --git a/sql/updates/realmd/s2417_01_realmd_account_logons.sql b/sql/updates/realmd/s2417_01_realmd_account_logons.sql index 8500169f3db..f2ddeb8820f 100644 --- a/sql/updates/realmd/s2417_01_realmd_account_logons.sql +++ b/sql/updates/realmd/s2417_01_realmd_account_logons.sql @@ -9,6 +9,7 @@ loginTime timestamp NOT NULL, loginSource INT UNSIGNED NOT NULL ); +SET @@sql_mode := REPLACE(@old_sql_mode := @@sql_mode, 'NO_ZERO_DATE', ''); ALTER TABLE account CHANGE `last_ip` `lockedIp` VARCHAR(30) NOT NULL DEFAULT '0.0.0.0'; ALTER TABLE account DROP COLUMN last_login; - +SET @@sql_mode := @old_sql_mode;