From 8bdc2071dab2941fb5feb821832758214377378e Mon Sep 17 00:00:00 2001 From: Dniel97 Date: Sun, 19 Feb 2023 16:08:53 +0100 Subject: [PATCH] diva: changed player_name length to 10 --- core/data/schema/versions/SBZV_3_rollback.sql | 1 + core/data/schema/versions/SBZV_4_upgrade.sql | 1 + titles/diva/schema/profile.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/data/schema/versions/SBZV_3_rollback.sql b/core/data/schema/versions/SBZV_3_rollback.sql index 00d95e1..18c2448 100644 --- a/core/data/schema/versions/SBZV_3_rollback.sql +++ b/core/data/schema/versions/SBZV_3_rollback.sql @@ -1,2 +1,3 @@ ALTER TABLE diva_profile DROP COLUMN passwd_stat; ALTER TABLE diva_profile DROP COLUMN passwd; +ALTER TABLE diva_profile MODIFY player_name VARCHAR(8); diff --git a/core/data/schema/versions/SBZV_4_upgrade.sql b/core/data/schema/versions/SBZV_4_upgrade.sql index d3aacb6..c3a802c 100644 --- a/core/data/schema/versions/SBZV_4_upgrade.sql +++ b/core/data/schema/versions/SBZV_4_upgrade.sql @@ -1,2 +1,3 @@ ALTER TABLE diva_profile ADD COLUMN passwd_stat INTEGER NOT NULL DEFAULT 0; ALTER TABLE diva_profile ADD COLUMN passwd VARCHAR(12) NOT NULL DEFAULT "**********"; +ALTER TABLE diva_profile MODIFY player_name VARCHAR(10); diff --git a/titles/diva/schema/profile.py b/titles/diva/schema/profile.py index 76e8241..272026c 100644 --- a/titles/diva/schema/profile.py +++ b/titles/diva/schema/profile.py @@ -14,7 +14,7 @@ profile = Table( Column("user", ForeignKey("aime_user.id", ondelete="cascade", onupdate="cascade"), nullable=False), Column("version", Integer, nullable=False), - Column("player_name", String(8), nullable=False), + Column("player_name", String(10), nullable=False), Column("lv_str", String(24), nullable=False, server_default="Dab on 'em"), Column("lv_num", Integer, nullable=False, server_default="0"), Column("lv_pnt", Integer, nullable=False, server_default="0"),