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

This commit is contained in:
2025-11-15 19:55:11 +03:00
parent cd9cd739be
commit 651aee2b9a
2 changed files with 74 additions and 3 deletions
+5 -1
View File
@@ -160,7 +160,8 @@ def ensure_database_structure():
CREATE TABLE categories (
AUTO_ID INT AUTO_INCREMENT PRIMARY KEY,
ID VARCHAR(255),
TITLE VARCHAR(2048)
TITLE VARCHAR(2048),
description TEXT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
'''
}
@@ -220,6 +221,9 @@ def ensure_database_structure():
],
'interlinks': [
{'column': 'auto_added', 'type': 'BOOLEAN DEFAULT 0'}
],
'categories': [
{'column': 'description', 'type': 'TEXT'}
]
}