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)'}