Remove password in dockerfile, change guild/channel ids to bigint unsigned.
This commit is contained in:
@@ -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/
|
||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user