Move category size to Categories table.
This commit is contained in:
@@ -16,7 +16,6 @@ CREATE TABLE CategoryGroups(
|
|||||||
GuildId bigint unsigned not null,
|
GuildId bigint unsigned not null,
|
||||||
MessageId bigint unsigned,
|
MessageId bigint unsigned,
|
||||||
PadLength smallint not null DEFAULT 26,
|
PadLength smallint not null DEFAULT 26,
|
||||||
Size smallint not null DEFAULT 3, -- unsure if I like this name. Also unsure belong here or in Category
|
|
||||||
CONSTRAINT UniqueGuildCategoryGroup UNIQUE (GuildId, GroupName),
|
CONSTRAINT UniqueGuildCategoryGroup UNIQUE (GuildId, GroupName),
|
||||||
FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId),
|
FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId),
|
||||||
PRIMARY KEY (GroupId)
|
PRIMARY KEY (GroupId)
|
||||||
@@ -26,6 +25,7 @@ CREATE TABLE Categories(
|
|||||||
CategoryId int unsigned not null unique AUTO_INCREMENT,
|
CategoryId int unsigned not null unique AUTO_INCREMENT,
|
||||||
CategoryName varchar(30) not null,
|
CategoryName varchar(30) not null,
|
||||||
GroupId int unsigned not null,
|
GroupId int unsigned not null,
|
||||||
|
Size smallint not null DEFAULT 3,
|
||||||
IsAscending boolean not null DEFAULT true,
|
IsAscending boolean not null DEFAULT true,
|
||||||
IsTimeRecord boolean not null DEFAULT false,
|
IsTimeRecord boolean not null DEFAULT false,
|
||||||
IsValidated boolean not null DEFAULT true,
|
IsValidated boolean not null DEFAULT true,
|
||||||
|
|||||||
Reference in New Issue
Block a user