diff --git a/MySQL_docker/Dockerfile b/MySQL_docker/Dockerfile index 53f2e39..6bc61c2 100644 --- a/MySQL_docker/Dockerfile +++ b/MySQL_docker/Dockerfile @@ -1,5 +1,3 @@ FROM mysql:latest -ENV MYSQL_ROOT_PASSWORD=root - COPY highscores_database.sql /docker-entrypoint-initdb.d/ \ No newline at end of file diff --git a/MySQL_docker/highscores_database.sql b/MySQL_docker/highscores_database.sql index c55e41b..4a4adc6 100644 --- a/MySQL_docker/highscores_database.sql +++ b/MySQL_docker/highscores_database.sql @@ -2,19 +2,19 @@ CREATE DATABASE highscores; use highscores; CREATE TABLE Guilds( - GuildId int not null, - SubmissionChannel int, + GuildId bigint unsigned not null, + SubmissionChannel bigint unsigned, UsernameLength smallint DEFAULT 12, - VerificationChannel int, + VerificationChannel bigint unsigned, PRIMARY KEY (GuildId) ); -CREATE TABLE CategoryGroups( - ChannelId int, +CREATE TABLE Groups( + ChannelId bigint unsigned, GroupId int not null AUTO_INCREMENT, GroupName varchar(50) not null, GuildId int not null, - MessageId int, + 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 FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId),