Skip to content

Commit

Permalink
fix: mysql v8 db error
Browse files Browse the repository at this point in the history
  • Loading branch information
design1online committed Oct 13, 2023
1 parent a4800cb commit c437612
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/controllers/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default class Entities {

if (info.type !== 'item' && entity.handler) {
entity.handler.setGame(this.game);
entity.handler.loadEntity();
entity.handler.load();
}
}

Expand Down
6 changes: 3 additions & 3 deletions server/js/database/creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class Creator {
+ 'mana int,'
+ 'pvpKills int,'
+ 'pvpDeaths int,'
+ 'rank int,'
+ 'playerRank int,'
+ 'ban int(64),'
+ 'mute varchar(64),'
+ 'membership varchar(64),'
Expand Down Expand Up @@ -217,7 +217,7 @@ export default class Creator {
mana: data.mana.getMana(),
pvpKills: data.pvpKills,
pvpDeaths: data.pvpDeaths,
rank: data.rank,
rank: data.playerRank,
ban: data.ban,
mute: data.mute,
membership: data.membership,
Expand Down Expand Up @@ -257,7 +257,7 @@ export default class Creator {
experience: player.experience ? player.experience : 0,
ban: player.ban ? player.ban : 0,
mute: player.mute ? player.mute : 0,
rank: player.rank ? player.rank : 0,
rank: player.playerRank ? player.playerRank : 0,
membership: player.membership ? player.membership : 0,
lastLogin: player.lastLogin ? player.lastLogin : 0,
guild: player.guild ? player.guild : '',
Expand Down
2 changes: 1 addition & 1 deletion tools/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ CREATE TABLE `player_data` (
`mana` int(11) DEFAULT NULL,
`pvpKills` int(11) DEFAULT NULL,
`pvpDeaths` int(11) DEFAULT NULL,
`rank` int(11) DEFAULT NULL,
`playerRank` int(11) DEFAULT NULL,
`ban` int(64) DEFAULT NULL,
`mute` int(64) DEFAULT NULL,
`membership` int(64) DEFAULT NULL,
Expand Down

0 comments on commit c437612

Please sign in to comment.