Change database structure. UsernameLength belong in CategoryGroup.

This commit is contained in:
alwayscompiling
2022-12-03 20:56:57 -05:00
parent 081e406d51
commit b7dd44a028
+1 -1
View File
@@ -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)