From 17867671f10eec660218f17f0d18c29efeb35443 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Sat, 26 Nov 2022 23:45:10 -0500 Subject: [PATCH] Change order of database columns for easier reading. --- MySQL_docker/highscores_database.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MySQL_docker/highscores_database.sql b/MySQL_docker/highscores_database.sql index 9f40191..3b95dd6 100644 --- a/MySQL_docker/highscores_database.sql +++ b/MySQL_docker/highscores_database.sql @@ -10,13 +10,13 @@ CREATE TABLE Guilds( ); CREATE TABLE CategoryGroups( - ChannelId bigint unsigned, GroupId int unsigned not null unique AUTO_INCREMENT, GroupName varchar(50) not null, + ChannelId bigint unsigned, GuildId bigint unsigned not null, MessageId bigint unsigned, PadLength smallint not null DEFAULT 26, - Size smallint not null, -- unsure if I like this name. Also unsure belong here or in Category + 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)