From 6d592dcbc7b02e0dab03c7f385ddde9538a3c228 Mon Sep 17 00:00:00 2001 From: Midorica Date: Tue, 10 Oct 2023 18:24:54 -0400 Subject: [PATCH] fixing skin issue with diva profile --- core/data/schema/versions/SBZV_5_rollback.sql | 2 ++ core/data/schema/versions/SBZV_6_upgrade.sql | 2 ++ titles/diva/base.py | 2 +- titles/diva/schema/profile.py | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 core/data/schema/versions/SBZV_5_rollback.sql create mode 100644 core/data/schema/versions/SBZV_6_upgrade.sql diff --git a/core/data/schema/versions/SBZV_5_rollback.sql b/core/data/schema/versions/SBZV_5_rollback.sql new file mode 100644 index 0000000..4eddc17 --- /dev/null +++ b/core/data/schema/versions/SBZV_5_rollback.sql @@ -0,0 +1,2 @@ +ALTER TABLE diva_profile + DROP skn_eqp, \ No newline at end of file diff --git a/core/data/schema/versions/SBZV_6_upgrade.sql b/core/data/schema/versions/SBZV_6_upgrade.sql new file mode 100644 index 0000000..63ff6b3 --- /dev/null +++ b/core/data/schema/versions/SBZV_6_upgrade.sql @@ -0,0 +1,2 @@ +ALTER TABLE diva_profile + ADD skn_eqp INT NOT NULL DEFAULT 0, \ No newline at end of file diff --git a/titles/diva/base.py b/titles/diva/base.py index 3f9ef12..6db0dbc 100644 --- a/titles/diva/base.py +++ b/titles/diva/base.py @@ -402,7 +402,7 @@ class DivaBase: response += f"&lv_num={profile['lv_num']}" response += f"&lv_pnt={profile['lv_pnt']}" response += f"&vcld_pts={profile['vcld_pts']}" - response += f"&skn_eqp={profile['use_pv_skn_eqp']}" + response += f"&skn_eqp={profile['skn_eqp']}" response += f"&btn_se_eqp={profile['btn_se_eqp']}" response += f"&sld_se_eqp={profile['sld_se_eqp']}" response += f"&chn_sld_se_eqp={profile['chn_sld_se_eqp']}" diff --git a/titles/diva/schema/profile.py b/titles/diva/schema/profile.py index 7107068..7bd6bf0 100644 --- a/titles/diva/schema/profile.py +++ b/titles/diva/schema/profile.py @@ -51,6 +51,7 @@ profile = Table( Column("rgo_sts", Integer, nullable=False, server_default="1"), Column("lv_efct_id", Integer, nullable=False, server_default="0"), Column("lv_plt_id", Integer, nullable=False, server_default="1"), + Column("skn_eqp", Integer, nullable=False, server_default="0"), Column("passwd_stat", Integer, nullable=False, server_default="0"), Column("passwd", String(12), nullable=False, server_default="**********"), Column(