From b7dd44a0281cc26f3599d8be0036d353d0cb2635 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Sat, 3 Dec 2022 20:56:57 -0500 Subject: [PATCH] Change database structure. UsernameLength belong in CategoryGroup. --- MySQL_docker/highscores_database.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MySQL_docker/highscores_database.sql b/MySQL_docker/highscores_database.sql index 3ab4ec4..74dfc59 100644 --- a/MySQL_docker/highscores_database.sql +++ b/MySQL_docker/highscores_database.sql @@ -4,7 +4,6 @@ use highscores; CREATE TABLE Guilds( GuildId bigint unsigned not null unique, SubmissionChannel bigint unsigned, - UsernameLength smallint DEFAULT 12, VerificationChannel bigint unsigned, PRIMARY KEY (GuildId) ); @@ -16,6 +15,7 @@ CREATE TABLE CategoryGroups( GuildId bigint unsigned not null, MessageId bigint unsigned, PadLength smallint not null DEFAULT 26, + UsernameLength smallint DEFAULT 12, CONSTRAINT UniqueGuildCategoryGroup UNIQUE (GuildId, GroupName), FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId), PRIMARY KEY (GroupId)