mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -05:00
[3.2][Audio] Database migration fix (#3275)
* Missed this due to the mess of a fork i had * chore
This commit is contained in:
1
changelog.d/audio/3275.misc.1.rst
Normal file
1
changelog.d/audio/3275.misc.1.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Change timestamp from TEXt to INT during migration
|
||||||
@@ -217,7 +217,7 @@ class Audio(commands.Cog):
|
|||||||
|
|
||||||
async def _migrate_config(self, from_version: int, to_version: int) -> None:
|
async def _migrate_config(self, from_version: int, to_version: int) -> None:
|
||||||
database_entries = []
|
database_entries = []
|
||||||
time_now = str(datetime.datetime.now(datetime.timezone.utc))
|
time_now = int(datetime.datetime.now(datetime.timezone.utc).timestamp())
|
||||||
if from_version == to_version:
|
if from_version == to_version:
|
||||||
return
|
return
|
||||||
if from_version < 2 <= to_version:
|
if from_version < 2 <= to_version:
|
||||||
|
|||||||
Reference in New Issue
Block a user