Repository tweaks [skip ci]

This commit is contained in:
Akkadius
2020-04-11 02:47:54 -05:00
parent 5c7eb0707f
commit e0363a8fe1
173 changed files with 1185 additions and 3011 deletions
@@ -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));