Skip to content

Commit

Permalink
Fixed MysqlDataTruncation
Browse files Browse the repository at this point in the history
VeteranRewardDAO was not able to reward players on accounts older than 10 years and 8 months, as noticed on local test accounts
  • Loading branch information
neon-dev committed Dec 1, 2024
1 parent 8cd32a8 commit fd3e5d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game-server/sql/aion_gs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ CREATE TABLE `player_titles` (
-- ----------------------------
CREATE TABLE `player_veteran_rewards` (
`player_id` int(11) NOT NULL,
`received_months` tinyint(3) NOT NULL DEFAULT '0',
`received_months` tinyint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`player_id`),
CONSTRAINT `player_veteran_rewards_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Expand Down
4 changes: 3 additions & 1 deletion game-server/sql/update.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ CREATE TABLE `advent` (
`account_id` int(11) NOT NULL,
`last_day_received` tinyint(4) NOT NULL,
PRIMARY KEY (`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `player_veteran_rewards` CHANGE COLUMN `received_months` `received_months` TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER `player_id`;

0 comments on commit fd3e5d1

Please sign in to comment.