From 18e7aaef34775b25d6c1ce9d3ac537eb9deddce7 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Thu, 25 Dec 2025 20:23:14 +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=20tg=5Fid=20=D0=B2=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D1=86=D1=83=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3=D0=BE=D1=80=D0=B8?= =?UTF-8?q?=D0=B9=20(=D0=BF=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 75f4d3d..f39f2cf 100644 --- a/ensure_db.py +++ b/ensure_db.py @@ -162,7 +162,8 @@ def ensure_database_structure(): AUTO_ID INT AUTO_INCREMENT PRIMARY KEY, ID VARCHAR(255), TITLE VARCHAR(2048), - description TEXT + description TEXT, + tg_id BIGINT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ''' } @@ -224,7 +225,8 @@ def ensure_database_structure(): {'column': 'auto_added', 'type': 'BOOLEAN DEFAULT 0'} ], 'categories': [ - {'column': 'description', 'type': 'TEXT'} + {'column': 'description', 'type': 'TEXT'}, + {'column': 'tg_id', 'type': 'BIGINT NULL'} ], 'events': [ {'column': 'authors', 'type': 'VARCHAR(255)'}