mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
try fix migrations
This commit is contained in:
parent
944c5ce002
commit
1c33d602e0
@ -10,6 +10,7 @@ import logging
|
|||||||
async def upgrade_1():
|
async def upgrade_1():
|
||||||
"""Шифруем токены"""
|
"""Шифруем токены"""
|
||||||
meta_info = await MetaInfo.first()
|
meta_info = await MetaInfo.first()
|
||||||
|
print("version", meta_info.version)
|
||||||
if meta_info.version != 0:
|
if meta_info.version != 0:
|
||||||
logging.info("skip")
|
logging.info("skip")
|
||||||
return
|
return
|
||||||
@ -27,6 +28,7 @@ async def upgrade_1():
|
|||||||
async def upgrade_2():
|
async def upgrade_2():
|
||||||
"""Отменяем малый TTL для старых сообщений"""
|
"""Отменяем малый TTL для старых сообщений"""
|
||||||
meta_info = await MetaInfo.first()
|
meta_info = await MetaInfo.first()
|
||||||
|
print("version", meta_info.version)
|
||||||
if meta_info.version != 1:
|
if meta_info.version != 1:
|
||||||
logging.info("skip")
|
logging.info("skip")
|
||||||
return
|
return
|
||||||
@ -49,6 +51,7 @@ async def upgrade_3():
|
|||||||
import html
|
import html
|
||||||
|
|
||||||
meta_info = await MetaInfo.first()
|
meta_info = await MetaInfo.first()
|
||||||
|
print("version", meta_info.version)
|
||||||
if meta_info.version != 2:
|
if meta_info.version != 2:
|
||||||
logging.info("skip")
|
logging.info("skip")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user