From 1c33d602e070fa17007a17ccb1a1fb1f83f65e2a Mon Sep 17 00:00:00 2001 From: mihalin Date: Sat, 25 Jun 2022 00:07:22 +0300 Subject: [PATCH] try fix migrations --- olgram/migrations/custom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/olgram/migrations/custom.py b/olgram/migrations/custom.py index b7fd4a7..4fe6ecf 100644 --- a/olgram/migrations/custom.py +++ b/olgram/migrations/custom.py @@ -10,6 +10,7 @@ import logging async def upgrade_1(): """Шифруем токены""" meta_info = await MetaInfo.first() + print("version", meta_info.version) if meta_info.version != 0: logging.info("skip") return @@ -27,6 +28,7 @@ async def upgrade_1(): async def upgrade_2(): """Отменяем малый TTL для старых сообщений""" meta_info = await MetaInfo.first() + print("version", meta_info.version) if meta_info.version != 1: logging.info("skip") return @@ -49,6 +51,7 @@ async def upgrade_3(): import html meta_info = await MetaInfo.first() + print("version", meta_info.version) if meta_info.version != 2: logging.info("skip") return