Skip to content

Commit

Permalink
Increased the integer storage type for EXP
Browse files Browse the repository at this point in the history
* Adjusted the homunculus and mvplog tables to support increased EXP amounts.
  • Loading branch information
aleos89 committed Feb 18, 2017
1 parent 03ffd99 commit 6c0debb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql-files/logs.sql
Expand Up @@ -117,7 +117,7 @@ CREATE TABLE IF NOT EXISTS `mvplog` (
`kill_char_id` int(11) NOT NULL default '0',
`monster_id` smallint(6) NOT NULL default '0',
`prize` smallint(5) unsigned NOT NULL default '0',
`mvpexp` mediumint(9) NOT NULL default '0',
`mvpexp` bigint(20) unsigned NOT NULL default '0',
`map` varchar(11) NOT NULL default '',
PRIMARY KEY (`mvp_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1;
Expand Down
2 changes: 1 addition & 1 deletion sql-files/main.sql
Expand Up @@ -564,7 +564,7 @@ CREATE TABLE IF NOT EXISTS `homunculus` (
`prev_class` mediumint(9) NOT NULL default '0',
`name` varchar(24) NOT NULL default '',
`level` smallint(4) NOT NULL default '0',
`exp` int(12) NOT NULL default '0',
`exp` bigint(20) unsigned NOT NULL default '0',
`intimacy` int(12) NOT NULL default '0',
`hunger` smallint(4) NOT NULL default '0',
`str` smallint(4) unsigned NOT NULL default '0',
Expand Down
1 change: 1 addition & 0 deletions sql-files/upgrades/upgrade_20170218.sql
@@ -0,0 +1 @@
ALTER TABLE `homunculus` MODIFY COLUMN `exp` bigint(20) unsigned NOT NULL DEFAULT '0';
1 change: 1 addition & 0 deletions sql-files/upgrades/upgrade_20170218_log.sql
@@ -0,0 +1 @@
ALTER TABLE `mvplog` MODIFY COLUMN `mvpexp` bigint(20) unsigned NOT NULL DEFAULT '0';

1 comment on commit 6c0debb

@srhmike
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thank you!

Please sign in to comment.