Server
Server copied to clipboard
Repository generator error - skill_caps.
The repository generator script does not generate a good repository for skill_caps table.
The table below:
CREATE TABLE
skill_caps(skillIDTINYINT(3) UNSIGNED NOT NULL DEFAULT '0',classTINYINT(3) UNSIGNED NOT NULL DEFAULT '0',levelTINYINT(3) UNSIGNED NOT NULL DEFAULT '0',capMEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',class_TINYINT(3) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (skillID,class,level,class_) USING BTREE );
Generates the following struct:
struct SkillCaps { uint8_t skillID; uint8_t class_; uint8_t level; uint32_t cap; uint8_t class_; };
It appears to not handle the class and class_ fields overlapping with the reserved word correctly.
I guess something else notable is that it doesn't handle the primary key properly either but thinking on it I'm not sure you can expect a primary key that spans multiple fields to work very well with this sort of thing.
Let’s chat about this one