Change database structure. UsernameLength belong in CategoryGroup.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user