Добавление поля authors в таблицу событий для соответствия функционалу API ВОЛК. Добавление функции загрузки событий одной категории.
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-11-15 20:40:51 +03:00
parent 651aee2b9a
commit 2c84256634
2 changed files with 160 additions and 0 deletions
+4
View File
@@ -126,6 +126,7 @@ def ensure_database_structure():
name VARCHAR(255),
about VARCHAR(4096),
about_social_picture VARCHAR(2048),
authors VARCHAR(255),
modified DATETIME NULL,
added DATETIME NULL,
tags VARCHAR(255),
@@ -224,6 +225,9 @@ def ensure_database_structure():
],
'categories': [
{'column': 'description', 'type': 'TEXT'}
],
'events': [
{'column': 'authors', 'type': 'VARCHAR(255)'}
]
}