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 FROM mysql:latest
ENV MYSQL_ROOT_PASSWORD=root
COPY highscores_database.sql /docker-entrypoint-initdb.d/ COPY highscores_database.sql /docker-entrypoint-initdb.d/
+6 -6
View File
@@ -2,19 +2,19 @@ CREATE DATABASE highscores;
use highscores; use highscores;
CREATE TABLE Guilds( CREATE TABLE Guilds(
GuildId int not null, GuildId bigint unsigned not null,
SubmissionChannel int, SubmissionChannel bigint unsigned,
UsernameLength smallint DEFAULT 12, UsernameLength smallint DEFAULT 12,
VerificationChannel int, VerificationChannel bigint unsigned,
PRIMARY KEY (GuildId) PRIMARY KEY (GuildId)
); );
CREATE TABLE CategoryGroups( CREATE TABLE Groups(
ChannelId int, ChannelId bigint unsigned,
GroupId int not null AUTO_INCREMENT, GroupId int not null AUTO_INCREMENT,
GroupName varchar(50) not null, GroupName varchar(50) not null,
GuildId int not null, GuildId int not null,
MessageId int, MessageId bigint unsigned,
PadLength smallint not null DEFAULT 26, 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, -- unsure if I like this name. Also unsure belong here or in Category
FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId), FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId),