Увеличена максимальная длина сообщения контекста в БД.
This commit is contained in:
parent
0abd8c37f6
commit
a1e5d4d2e8
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ class TgDatabase(database.BasicDatabase):
|
|||
chat_id BIGINT NOT NULL,
|
||||
message_id BIGINT,
|
||||
role VARCHAR(16) NOT NULL,
|
||||
content VARCHAR(2000) NOT NULL,
|
||||
content VARCHAR(4000) NOT NULL,
|
||||
UNIQUE KEY contexts_unique (bot_id, chat_id, message_id),
|
||||
CONSTRAINT fk_contexts_chats FOREIGN KEY (bot_id, chat_id) REFERENCES chats (bot_id, chat_id) ON UPDATE CASCADE ON DELETE CASCADE)
|
||||
""")
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class VkDatabase(database.BasicDatabase):
|
|||
chat_id BIGINT NOT NULL,
|
||||
message_id BIGINT,
|
||||
role VARCHAR(16) NOT NULL,
|
||||
content VARCHAR(2000) NOT NULL,
|
||||
content VARCHAR(4000) NOT NULL,
|
||||
UNIQUE KEY contexts_unique (bot_id, chat_id, message_id),
|
||||
CONSTRAINT fk_contexts_chats FOREIGN KEY (bot_id, chat_id) REFERENCES chats (bot_id, chat_id) ON UPDATE CASCADE ON DELETE CASCADE)
|
||||
""")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue