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