Add the messages table to database.
This commit is contained in:
@@ -46,4 +46,9 @@ CREATE TABLE ParticipationPoints (
|
|||||||
DiscordMember boolean not null,
|
DiscordMember boolean not null,
|
||||||
Points int unsigned DEFAULT 0,
|
Points int unsigned DEFAULT 0,
|
||||||
PRIMARY KEY (Cycle, UserId)
|
PRIMARY KEY (Cycle, UserId)
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE TABLE Messages (
|
||||||
|
FileName varchar(100) PRIMARY KEY,
|
||||||
|
MessageId bigint unsigned not null
|
||||||
);
|
);
|
||||||
@@ -12,9 +12,10 @@ Base = automap_base()
|
|||||||
Base.prepare(autoload_with=engine)
|
Base.prepare(autoload_with=engine)
|
||||||
|
|
||||||
# define the classes
|
# define the classes
|
||||||
ElectionInformation = Base.classes.ElectionInformation
|
|
||||||
CouncilMembers = Base.classes.CouncilMembers
|
CouncilMembers = Base.classes.CouncilMembers
|
||||||
Votes = Base.classes.Votes
|
ElectionInformation = Base.classes.ElectionInformation
|
||||||
UserBirthday = Base.classes.UserBirthday
|
Messages = Base.classes.Messages
|
||||||
Presences = Base.classes.Presences
|
|
||||||
ParticipationPoints = Base.classes.ParticipationPoints
|
ParticipationPoints = Base.classes.ParticipationPoints
|
||||||
|
Presences = Base.classes.Presences
|
||||||
|
UserBirthday = Base.classes.UserBirthday
|
||||||
|
Votes = Base.classes.Votes
|
||||||
|
|||||||
Reference in New Issue
Block a user