Added 0.3.1 migration scripts #428
This commit is contained in:
parent
d93c3ad6c7
commit
5461a6d8dc
4
bot/src/bot_data/scripts/0.3.0/AutoRoleFix_down.sql
Normal file
4
bot/src/bot_data/scripts/0.3.0/AutoRoleFix_down.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
ALTER TABLE AutoRoles DROP COLUMN DiscordChannelId;
|
||||||
|
|
||||||
|
|
4
bot/src/bot_data/scripts/0.3.0/AutoRoleFix_up.sql
Normal file
4
bot/src/bot_data/scripts/0.3.0/AutoRoleFix_up.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
ALTER TABLE AutoRoles ADD DiscordChannelId BIGINT NOT NULL AFTER ServerId;
|
||||||
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
DROP TABLE `UserMessageCountPerHour`;
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
CREATE TABLE IF NOT EXISTS `UserMessageCountPerHour` (
|
||||||
|
`Id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||||
|
`Date` DATETIME(6) NOT NULL,
|
||||||
|
`Hour` BIGINT,
|
||||||
|
`XPCount` BIGINT,
|
||||||
|
`UserId` BIGINT,
|
||||||
|
`CreatedAt` DATETIME(6),
|
||||||
|
`LastModifiedAt` DATETIME(6),
|
||||||
|
PRIMARY KEY(`Id`),
|
||||||
|
FOREIGN KEY (`UserId`) REFERENCES `Users`(`UserId`)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user