This commit is contained in:
+5
-1
@@ -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'}
|
||||||
|
|||||||
Reference in New Issue
Block a user