Skip to content

Commit

Permalink
Fixed: ERROR 1067 (42000): Invalid default value for 'last_login'
Browse files Browse the repository at this point in the history
Closes #716
  • Loading branch information
dvdvideo1234 authored and killerwife committed Jan 3, 2025
1 parent a4133b9 commit 7a9e075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/updates/realmd/s2417_01_realmd_account_logons.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 7a9e075

Please sign in to comment.