From e339cac7d91fb5cba92f6bcf7b3406bc51f783b5 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Thu, 25 Dec 2025 20:31:01 +0300 Subject: [PATCH] =?UTF-8?q?[=D0=92=D0=9E=D0=9B=D0=9A]=20=D0=B4=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8F=20URL=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=83=20=D0=BA?= =?UTF-8?q?=D0=B0=D1=82=D0=B5=D0=B3=D0=BE=D1=80=D0=B8=D0=B9=20(=D0=BF?= =?UTF-8?q?=D0=BB=D0=BE=D1=89=D0=B0=D0=B4=D0=BE=D0=BA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ensure_db.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ensure_db.py b/ensure_db.py index f39f2cf..c85a394 100644 --- a/ensure_db.py +++ b/ensure_db.py @@ -163,7 +163,8 @@ def ensure_database_structure(): ID VARCHAR(255), TITLE VARCHAR(2048), description TEXT, - tg_id BIGINT NULL + tg_id BIGINT NULL, + image_url VARCHAR(2048) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ''' } @@ -226,7 +227,8 @@ def ensure_database_structure(): ], 'categories': [ {'column': 'description', 'type': 'TEXT'}, - {'column': 'tg_id', 'type': 'BIGINT NULL'} + {'column': 'tg_id', 'type': 'BIGINT NULL'}, + {'column': 'image_url', 'type': 'VARCHAR(2048)'} ], 'events': [ {'column': 'authors', 'type': 'VARCHAR(255)'}