diva: changed player_name length to 10

This commit is contained in:
Dniel97 2023-02-19 16:08:53 +01:00
parent c99bfda015
commit 8bdc2071da
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08
3 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,3 @@
ALTER TABLE diva_profile DROP COLUMN passwd_stat; ALTER TABLE diva_profile DROP COLUMN passwd_stat;
ALTER TABLE diva_profile DROP COLUMN passwd; ALTER TABLE diva_profile DROP COLUMN passwd;
ALTER TABLE diva_profile MODIFY player_name VARCHAR(8);

View File

@ -1,2 +1,3 @@
ALTER TABLE diva_profile ADD COLUMN passwd_stat INTEGER NOT NULL DEFAULT 0; 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 ADD COLUMN passwd VARCHAR(12) NOT NULL DEFAULT "**********";
ALTER TABLE diva_profile MODIFY player_name VARCHAR(10);

View File

@ -14,7 +14,7 @@ profile = Table(
Column("user", ForeignKey("aime_user.id", ondelete="cascade", Column("user", ForeignKey("aime_user.id", ondelete="cascade",
onupdate="cascade"), nullable=False), onupdate="cascade"), nullable=False),
Column("version", Integer, 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_str", String(24), nullable=False, server_default="Dab on 'em"),
Column("lv_num", Integer, nullable=False, server_default="0"), Column("lv_num", Integer, nullable=False, server_default="0"),
Column("lv_pnt", Integer, nullable=False, server_default="0"), Column("lv_pnt", Integer, nullable=False, server_default="0"),