Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/migrations/8.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ function onUpdateDatabase()
`rune_void` INT(250) NULL ,
`UsedRunesBit` VARCHAR(250) NULL ,
`UnlockedRunesBit` VARCHAR(250) NULL,
`tracker list` BLOB NULL ) ENGINE = InnoDB DEFAULT CHARSET=utf8;
`tracker_list` BLOB NULL ) ENGINE = InnoDB DEFAULT CHARSET=utf8;
]])
end
4 changes: 2 additions & 2 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ CREATE TABLE IF NOT EXISTS `account_vipgroups` (
`account_id` int(11) UNSIGNED NOT NULL COMMENT 'id of account whose vip group entry it is',
`name` varchar(128) NOT NULL,
`customizable` BOOLEAN NOT NULL DEFAULT '1',
CONSTRAINT `account_vipgroups_pk` PRIMARY KEY (`id`, `account_id`),
CONSTRAINT `account_vipgroups_pk` PRIMARY KEY (`id`),
CONSTRAINT `account_vipgroups_accounts_fk`
FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`)
ON DELETE CASCADE
Expand Down Expand Up @@ -582,7 +582,7 @@ CREATE TABLE IF NOT EXISTS `player_charms` (
`UsedRunesBit` INT NOT NULL DEFAULT '0',
`UnlockedRunesBit` INT NOT NULL DEFAULT '0',
`charms` BLOB NULL,
`tracker list` BLOB NULL,
`tracker_list` BLOB NULL,
CONSTRAINT `player_charms_players_fk`
FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
Expand Down
2 changes: 1 addition & 1 deletion src/io/functions/iologindata_load_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ void IOLoginDataLoad::loadPlayerBestiaryCharms(const std::shared_ptr<Player> &pl
}

unsigned long attrBestSize;
const char* Bestattr = result->getStream("tracker list", attrBestSize);
const char* Bestattr = result->getStream("tracker_list", attrBestSize);
PropStream propBestStream;
propBestStream.init(Bestattr, attrBestSize);

Expand Down
2 changes: 1 addition & 1 deletion src/io/functions/iologindata_save_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ bool IOLoginDataSave::savePlayerBestiarySystem(const std::shared_ptr<Player> &pl
}
size_t trackerSize;
const char* trackerList = propBestiaryStream.getStream(trackerSize);
query << " `tracker list` = " << db.escapeBlob(trackerList, static_cast<uint32_t>(trackerSize));
query << " `tracker_list` = " << db.escapeBlob(trackerList, static_cast<uint32_t>(trackerSize));
query << " WHERE `player_id` = " << player->getGUID();

if (!db.executeQuery(query.str())) {
Expand Down
Loading