mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 15:52:26 +00:00
Add more DatabaseSchema entries
This commit is contained in:
parent
b222a619d7
commit
4695aa30ad
@ -33,7 +33,13 @@ namespace DatabaseSchema {
|
|||||||
static std::vector<std::string> GetPlayerTables()
|
static std::vector<std::string> GetPlayerTables()
|
||||||
{
|
{
|
||||||
std::vector<std::string> tables = {
|
std::vector<std::string> tables = {
|
||||||
|
"account",
|
||||||
|
"account_ip",
|
||||||
|
"account_flags",
|
||||||
|
"account_rewards",
|
||||||
|
"adventure_details",
|
||||||
"adventure_stats",
|
"adventure_stats",
|
||||||
|
"buyer",
|
||||||
"char_recipe_list",
|
"char_recipe_list",
|
||||||
"character_activities",
|
"character_activities",
|
||||||
"character_alt_currency",
|
"character_alt_currency",
|
||||||
@ -55,15 +61,21 @@ namespace DatabaseSchema {
|
|||||||
"character_material",
|
"character_material",
|
||||||
"character_memmed_spells",
|
"character_memmed_spells",
|
||||||
"character_pet_buffs",
|
"character_pet_buffs",
|
||||||
|
"character_pet_info",
|
||||||
"character_pet_inventory",
|
"character_pet_inventory",
|
||||||
"character_potionbelt",
|
"character_potionbelt",
|
||||||
"character_skills",
|
"character_skills",
|
||||||
"character_spells",
|
"character_spells",
|
||||||
|
"character_tasks",
|
||||||
"character_tribute",
|
"character_tribute",
|
||||||
"completed_tasks",
|
"completed_tasks",
|
||||||
"faction_values",
|
"faction_values",
|
||||||
"friends",
|
"friends",
|
||||||
|
"guild_bank",
|
||||||
"guild_members",
|
"guild_members",
|
||||||
|
"guild_ranks",
|
||||||
|
"guild_relations",
|
||||||
|
"guilds",
|
||||||
"instance_list_player",
|
"instance_list_player",
|
||||||
"inventory",
|
"inventory",
|
||||||
"inventory_snapshots",
|
"inventory_snapshots",
|
||||||
@ -71,8 +83,11 @@ namespace DatabaseSchema {
|
|||||||
"mail",
|
"mail",
|
||||||
"player_titlesets",
|
"player_titlesets",
|
||||||
"quest_globals",
|
"quest_globals",
|
||||||
|
"sharedbank",
|
||||||
"timers",
|
"timers",
|
||||||
"titles",
|
"titles",
|
||||||
|
"trader",
|
||||||
|
"trader_audit",
|
||||||
"zone_flags"
|
"zone_flags"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -185,15 +200,90 @@ namespace DatabaseSchema {
|
|||||||
static std::vector<std::string> GetServerTables()
|
static std::vector<std::string> GetServerTables()
|
||||||
{
|
{
|
||||||
std::vector<std::string> tables = {
|
std::vector<std::string> tables = {
|
||||||
|
"bugs",
|
||||||
"bug_reports",
|
"bug_reports",
|
||||||
|
"command_settings",
|
||||||
"db_str",
|
"db_str",
|
||||||
|
"discovered_items",
|
||||||
"eqtime",
|
"eqtime",
|
||||||
|
"eventlog",
|
||||||
|
"gm_ips",
|
||||||
|
"hackers",
|
||||||
|
"ip_exemptions",
|
||||||
|
"launcher",
|
||||||
|
"launcher_zones",
|
||||||
"level_exp_mods",
|
"level_exp_mods",
|
||||||
"logsys_categories",
|
"logsys_categories",
|
||||||
"name_filter",
|
"name_filter",
|
||||||
"perl_event_export_settings",
|
"perl_event_export_settings",
|
||||||
|
"petitions",
|
||||||
"profanity_list",
|
"profanity_list",
|
||||||
"saylink"
|
"reports",
|
||||||
|
"rule_sets",
|
||||||
|
"rule_values",
|
||||||
|
"saylink",
|
||||||
|
"variables",
|
||||||
|
};
|
||||||
|
|
||||||
|
return tables;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets state tables
|
||||||
|
* Tables that keep track of server state
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
static std::vector<std::string> GetStateTables()
|
||||||
|
{
|
||||||
|
std::vector<std::string> tables = {
|
||||||
|
"adventure_members",
|
||||||
|
"chatchannels",
|
||||||
|
"group_id",
|
||||||
|
"group_leaders",
|
||||||
|
"item_tick",
|
||||||
|
"lfguild",
|
||||||
|
"merchantlist_temp",
|
||||||
|
"object_contents",
|
||||||
|
"raid_details",
|
||||||
|
"raid_leaders",
|
||||||
|
"raid_members",
|
||||||
|
"respawn_times",
|
||||||
|
"spell_buckets",
|
||||||
|
"spell_globals",
|
||||||
|
};
|
||||||
|
|
||||||
|
return tables;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets login tables
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
static std::vector<std::string> GetLoginTables()
|
||||||
|
{
|
||||||
|
std::vector<std::string> tables = {
|
||||||
|
"login_accounts",
|
||||||
|
"login_api_tokens",
|
||||||
|
"login_server_admins",
|
||||||
|
"login_server_list_types",
|
||||||
|
"login_world_servers",
|
||||||
|
};
|
||||||
|
|
||||||
|
return tables;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets login tables
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
static std::vector<std::string> GetVersionTables()
|
||||||
|
{
|
||||||
|
std::vector<std::string> tables = {
|
||||||
|
"db_version",
|
||||||
|
"inventory_versions",
|
||||||
};
|
};
|
||||||
|
|
||||||
return tables;
|
return tables;
|
||||||
|
|||||||
@ -167,11 +167,32 @@ namespace WorldserverCommandHandler {
|
|||||||
server_tables_json.append(table);
|
server_tables_json.append(table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Json::Value login_tables_json;
|
||||||
|
std::vector<std::string> login_tables = DatabaseSchema::GetLoginTables();
|
||||||
|
for (const auto &table : login_tables) {
|
||||||
|
login_tables_json.append(table);
|
||||||
|
}
|
||||||
|
|
||||||
|
Json::Value state_tables_json;
|
||||||
|
std::vector<std::string> state_tables = DatabaseSchema::GetStateTables();
|
||||||
|
for (const auto &table : state_tables) {
|
||||||
|
state_tables_json.append(table);
|
||||||
|
}
|
||||||
|
|
||||||
|
Json::Value version_tables_json;
|
||||||
|
std::vector<std::string> version_tables = DatabaseSchema::GetVersionTables();
|
||||||
|
for (const auto &table : version_tables) {
|
||||||
|
version_tables_json.append(table);
|
||||||
|
}
|
||||||
|
|
||||||
Json::Value schema;
|
Json::Value schema;
|
||||||
|
|
||||||
schema["server_tables"] = server_tables_json;
|
schema["server_tables"] = server_tables_json;
|
||||||
schema["player_tables"] = player_tables_json;
|
schema["player_tables"] = player_tables_json;
|
||||||
schema["content_tables"] = content_tables_json;
|
schema["content_tables"] = content_tables_json;
|
||||||
|
schema["login_tables"] = login_tables_json;
|
||||||
|
schema["state_tables"] = state_tables_json;
|
||||||
|
schema["version_tables"] = version_tables_json;
|
||||||
|
|
||||||
std::stringstream payload;
|
std::stringstream payload;
|
||||||
payload << schema;
|
payload << schema;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user