mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
Repository tweaks [skip ci]
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* This repository was automatically generated on Apr 5, 2020 and is NOT
|
||||
* to be modified directly. Any repository modifications are meant to be made to
|
||||
* This repository was automatically generated and is NOT to be modified directly.
|
||||
* Any repository modifications are meant to be made to
|
||||
* the repository extending the base. Any modifications to base repositories are to
|
||||
* be made by the generator only
|
||||
*/
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
static std::string PrimaryKey()
|
||||
{
|
||||
return std::string("slot");
|
||||
return std::string("id");
|
||||
}
|
||||
|
||||
static std::vector<std::string> Columns()
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
)
|
||||
{
|
||||
for (auto &character_bind : character_binds) {
|
||||
if (character_bind.slot == character_bind_id) {
|
||||
if (character_bind.id == character_bind_id) {
|
||||
return character_bind;
|
||||
}
|
||||
}
|
||||
@@ -192,6 +192,7 @@ public:
|
||||
|
||||
auto columns = Columns();
|
||||
|
||||
update_values.push_back(columns[1] + " = " + std::to_string(character_bind_entry.slot));
|
||||
update_values.push_back(columns[2] + " = " + std::to_string(character_bind_entry.zone_id));
|
||||
update_values.push_back(columns[3] + " = " + std::to_string(character_bind_entry.instance_id));
|
||||
update_values.push_back(columns[4] + " = " + std::to_string(character_bind_entry.x));
|
||||
@@ -205,7 +206,7 @@ public:
|
||||
TableName(),
|
||||
implode(", ", update_values),
|
||||
PrimaryKey(),
|
||||
character_bind_entry.slot
|
||||
character_bind_entry.id
|
||||
)
|
||||
);
|
||||
|
||||
@@ -218,6 +219,7 @@ public:
|
||||
{
|
||||
std::vector<std::string> insert_values;
|
||||
|
||||
insert_values.push_back(std::to_string(character_bind_entry.slot));
|
||||
insert_values.push_back(std::to_string(character_bind_entry.zone_id));
|
||||
insert_values.push_back(std::to_string(character_bind_entry.instance_id));
|
||||
insert_values.push_back(std::to_string(character_bind_entry.x));
|
||||
@@ -252,6 +254,7 @@ public:
|
||||
for (auto &character_bind_entry: character_bind_entries) {
|
||||
std::vector<std::string> insert_values;
|
||||
|
||||
insert_values.push_back(std::to_string(character_bind_entry.slot));
|
||||
insert_values.push_back(std::to_string(character_bind_entry.zone_id));
|
||||
insert_values.push_back(std::to_string(character_bind_entry.instance_id));
|
||||
insert_values.push_back(std::to_string(character_bind_entry.x));
|
||||
|
||||
Reference in New Issue
Block a user