Made mob sprite column unique (#4239)

Make the Sprite column for the SQL monster databases unique.

Fixes #4223.

Thanks to @Indigo000!
This commit is contained in:
Lemongrass3110
2019-07-08 23:17:42 +02:00
committed by GitHub
parent 8bb6b119b4
commit d80e111e5f
5 changed files with 31 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
DROP TABLE IF EXISTS `mob_db2_re`;
CREATE TABLE `mob_db2_re` (
`ID` mediumint(9) unsigned NOT NULL default '0',
`Sprite` text NOT NULL,
`Sprite` varchar(24) NOT NULL,
`kName` text NOT NULL,
`iName` text NOT NULL,
`LV` tinyint(6) unsigned NOT NULL default '0',
@@ -61,7 +61,8 @@ CREATE TABLE `mob_db2_re` (
`Drop9per` smallint(9) unsigned NOT NULL default '0',
`DropCardid` smallint(5) unsigned NOT NULL default '0',
`DropCardper` smallint(9) unsigned NOT NULL default '0',
PRIMARY KEY (`ID`)
PRIMARY KEY (`ID`),
UNIQUE KEY (`Sprite`)
) ENGINE=MyISAM;
# Monsters Additional Database