Updated migration #168
This commit is contained in:
parent
d91ff392ca
commit
84f8690bdf
@ -19,7 +19,7 @@ class UserMessageCountPerHourMigration(MigrationABC):
|
|||||||
str(f"""
|
str(f"""
|
||||||
CREATE TABLE IF NOT EXISTS `UserMessageCountPerHour` (
|
CREATE TABLE IF NOT EXISTS `UserMessageCountPerHour` (
|
||||||
`Id` BIGINT NOT NULL AUTO_INCREMENT,
|
`Id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||||
`Date` VARCHAR(255) NOT NULL,
|
`Date` DATETIME(6) NOT NULL,
|
||||||
`Hour` BIGINT,
|
`Hour` BIGINT,
|
||||||
`XPCount` BIGINT,
|
`XPCount` BIGINT,
|
||||||
`UserId` BIGINT,
|
`UserId` BIGINT,
|
||||||
@ -33,4 +33,3 @@ class UserMessageCountPerHourMigration(MigrationABC):
|
|||||||
|
|
||||||
def downgrade(self):
|
def downgrade(self):
|
||||||
self._cursor.execute('DROP TABLE `UserMessageCountPerHour`;')
|
self._cursor.execute('DROP TABLE `UserMessageCountPerHour`;')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user