Remove password in dockerfile, change guild/channel ids to bigint unsigned.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
FROM mysql:latest
|
||||
|
||||
ENV MYSQL_ROOT_PASSWORD=root
|
||||
|
||||
COPY highscores_database.sql /docker-entrypoint-initdb.d/
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user