Skip to content

Commit

Permalink
Merge pull request #280 from pacampbell/remove_unused_jewlery_slot
Browse files Browse the repository at this point in the history
refactor: Remove unused jewelry_slot_num field
  • Loading branch information
alborrajo authored Apr 30, 2024
2 parents 3a21fc4 + 1b70f19 commit e82e49d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ CREATE TABLE IF NOT EXISTS ddon_character_common
"character_common_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"job" SMALLINT NOT NULL,
"hide_equip_head" BOOLEAN NOT NULL,
"hide_equip_lantern" BOOLEAN NOT NULL,
"jewelry_slot_num" SMALLINT NOT NULL
"hide_equip_lantern" BOOLEAN NOT NULL
);

CREATE TABLE IF NOT EXISTS ddon_character
Expand Down
4 changes: 1 addition & 3 deletions Arrowgene.Ddon.Database/Sql/Core/DdonSqlDbCharacterCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public abstract partial class DdonSqlDb<TCon, TCom, TReader> : SqlDb<TCon, TCom,
{
private static readonly string[] CharacterCommonFields = new string[]
{
"job", "hide_equip_head", "hide_equip_lantern", "jewelry_slot_num"
"job", "hide_equip_head", "hide_equip_lantern"
};

private static readonly string[] CDataEditInfoFields = new string[]
Expand Down Expand Up @@ -291,7 +291,6 @@ private void ReadAllCharacterCommonData(TReader reader, CharacterCommon common)
{
common.CommonId = GetUInt32(reader, "character_common_id");
common.Job = (JobId) GetByte(reader, "job");
common.JewelrySlotNum = GetByte(reader, "jewelry_slot_num");
common.HideEquipHead = GetBoolean(reader, "hide_equip_head");
common.HideEquipLantern = GetBoolean(reader, "hide_equip_lantern");

Expand Down Expand Up @@ -386,7 +385,6 @@ private void AddParameter(TCom command, CharacterCommon common)
// CharacterCommonFields
AddParameter(command, "@character_common_id", common.CommonId);
AddParameter(command, "@job", (byte) common.Job);
AddParameter(command, "@jewelry_slot_num", common.JewelrySlotNum);
AddParameter(command, "@hide_equip_head", common.HideEquipHead);
AddParameter(command, "@hide_equip_lantern", common.HideEquipLantern);
// CDataEditInfoFields
Expand Down
3 changes: 1 addition & 2 deletions deploy/mariadb/schema_mariadb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ CREATE TABLE IF NOT EXISTS ddon_character_common
"character_common_id" INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
"job" SMALLINT NOT NULL,
"hide_equip_head" BOOLEAN NOT NULL,
"hide_equip_lantern" BOOLEAN NOT NULL,
"jewelry_slot_num" SMALLINT NOT NULL
"hide_equip_lantern" BOOLEAN NOT NULL
);

CREATE TABLE IF NOT EXISTS ddon_character
Expand Down
3 changes: 1 addition & 2 deletions deploy/postgresql/schema_postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ CREATE TABLE IF NOT EXISTS ddon_character_common
"character_common_id" SERIAL PRIMARY KEY NOT NULL,
"job" SMALLINT NOT NULL,
"hide_equip_head" BOOLEAN NOT NULL,
"hide_equip_lantern" BOOLEAN NOT NULL,
"jewelry_slot_num" SMALLINT NOT NULL
"hide_equip_lantern" BOOLEAN NOT NULL
);

CREATE TABLE IF NOT EXISTS ddon_character
Expand Down

0 comments on commit e82e49d

Please sign in to comment.