From 1a55ae0ac5982e0721f465f539bbc3cd2149884a Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Tue, 29 Nov 2022 21:11:44 -0500 Subject: [PATCH] Move category size to Categories table. --- 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 3b95dd6..3ab4ec4 100644 --- a/MySQL_docker/highscores_database.sql +++ b/MySQL_docker/highscores_database.sql @@ -16,7 +16,6 @@ CREATE TABLE CategoryGroups( GuildId bigint unsigned not null, MessageId bigint unsigned, PadLength smallint not null DEFAULT 26, - Size smallint not null DEFAULT 3, -- unsure if I like this name. Also unsure belong here or in Category CONSTRAINT UniqueGuildCategoryGroup UNIQUE (GuildId, GroupName), FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId), PRIMARY KEY (GroupId) @@ -26,6 +25,7 @@ CREATE TABLE Categories( CategoryId int unsigned not null unique AUTO_INCREMENT, CategoryName varchar(30) not null, GroupId int unsigned not null, + Size smallint not null DEFAULT 3, IsAscending boolean not null DEFAULT true, IsTimeRecord boolean not null DEFAULT false, IsValidated boolean not null DEFAULT true,