Skip to content

Commit

Permalink
[14083] Auth: Adjust joindate to be datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Mar 24, 2024
1 parent 928a880 commit 3336db6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sql/base/realmd.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

DROP TABLE IF EXISTS `realmd_db_version`;
CREATE TABLE `realmd_db_version` (
`required_14064_01_realmd_platform` bit(1) DEFAULT NULL
`required_14083_01_realmd_joindate_datetime` bit(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

--
Expand All @@ -48,7 +48,7 @@ CREATE TABLE `account` (
`v` longtext,
`s` longtext,
`email` text,
`joindate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`joindate` DATETIME NOT NULL DEFAULT NOW(),
`lockedIp` varchar(30) NOT NULL DEFAULT '0.0.0.0',
`failed_logins` int(11) unsigned NOT NULL DEFAULT '0',
`locked` tinyint(3) unsigned NOT NULL DEFAULT '0',
Expand Down
5 changes: 5 additions & 0 deletions sql/updates/realmd/14083_01_realmd_joindate_datetime.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE realmd_db_version CHANGE COLUMN required_14064_01_realmd_platform required_14083_01_realmd_joindate_datetime bit;

ALTER TABLE `account` MODIFY joindate DATETIME NOT NULL DEFAULT NOW();


2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_REALMD "required_14064_01_realmd_platform"
#define REVISION_DB_REALMD "required_14083_01_realmd_joindate_datetime"
#define REVISION_DB_LOGS "required_14039_01_logs_anticheat"
#define REVISION_DB_CHARACTERS "required_14061_01_characters_fishingSteps"
#define REVISION_DB_MANGOS "required_14082_01_mangos_spell_template"
Expand Down

0 comments on commit 3336db6

Please sign in to comment.