Remove password in dockerfile, change guild/channel ids to bigint unsigned.

This commit is contained in:
alwayscompiling
2022-11-26 17:29:04 -05:00
parent 6b7dd6042d
commit a3bed52479
2 changed files with 6 additions and 8 deletions
-2
View File
@@ -1,5 +1,3 @@
FROM mysql:latest
ENV MYSQL_ROOT_PASSWORD=root
COPY highscores_database.sql /docker-entrypoint-initdb.d/
+6 -6
View File
@@ -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),