добавление поля auto_unit
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-10-12 17:53:07 +03:00
parent 69bf49f3a9
commit a8c9d158aa
+5 -1
View File
@@ -83,7 +83,8 @@ def ensure_database_structure():
tg_poll_results TEXT DEFAULT '', tg_poll_results TEXT DEFAULT '',
is_event BOOLEAN DEFAULT 0, is_event BOOLEAN DEFAULT 0,
shortname VARCHAR(100), shortname VARCHAR(100),
action_number BIGINT NULL action_number BIGINT NULL,
auto_unit VARCHAR(255)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
''', ''',
'marks': ''' 'marks': '''
@@ -178,6 +179,9 @@ def ensure_database_structure():
# Проверка и добавление новых полей в существующие таблицы # Проверка и добавление новых полей в существующие таблицы
table_alterations = { table_alterations = {
'posts': [
{'column': 'auto_unit', 'type': 'VARCHAR(255)'}
],
'marks': [ 'marks': [
{'column': 'autolink', 'type': 'BOOLEAN DEFAULT 0'}, {'column': 'autolink', 'type': 'BOOLEAN DEFAULT 0'},
{'column': 'reminded_at', 'type': 'DATETIME NULL'} {'column': 'reminded_at', 'type': 'DATETIME NULL'}