[ВОЛК] добавление поля URL картинки в таблицу категорий (площадок)
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-12-25 20:31:01 +03:00
parent 18e7aaef34
commit e339cac7d9
+4 -2
View File
@@ -163,7 +163,8 @@ def ensure_database_structure():
ID VARCHAR(255), ID VARCHAR(255),
TITLE VARCHAR(2048), TITLE VARCHAR(2048),
description TEXT, description TEXT,
tg_id BIGINT NULL tg_id BIGINT NULL,
image_url VARCHAR(2048)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
''' '''
} }
@@ -226,7 +227,8 @@ def ensure_database_structure():
], ],
'categories': [ 'categories': [
{'column': 'description', 'type': 'TEXT'}, {'column': 'description', 'type': 'TEXT'},
{'column': 'tg_id', 'type': 'BIGINT NULL'} {'column': 'tg_id', 'type': 'BIGINT NULL'},
{'column': 'image_url', 'type': 'VARCHAR(2048)'}
], ],
'events': [ 'events': [
{'column': 'authors', 'type': 'VARCHAR(255)'} {'column': 'authors', 'type': 'VARCHAR(255)'}