Skip to content

重复添加列:llm_setting 列已经存在 和 删除不存在的列:model 列不存在 #588

Open
@hxin4347

Description

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

有没有人日志出现了这个报错,一提问就Error 请检查模型是否配置正确,知道到这个情况求支个招
2025-01-03 06:10:51,414 - [PID: 626][Sanic-Server-0-0] - [Function: execute_query_] - ERROR - 执行数据库操作失败:1060 (42S21): Duplicate column name 'llm_setting',SQL:ALTER TABLE QanythingBot ADD COLUMN llm_setting VARCHAR(512) DEFAULT '{}'
2025-01-03 06:10:51,418 - [PID: 626][Sanic-Server-0-0] - [Function: create_tables_] - INFO - Index created successfully: ALTER TABLE QanythingBot ADD COLUMN llm_setting VARCHAR(512) DEFAULT '{}'
2025-01-03 06:10:51,420 - [PID: 626][Sanic-Server-0-0] - [Function: execute_query_] - ERROR - 执行数据库操作失败:1091 (42000): Can't DROP 'model'; check that column/key exists,SQL:ALTER TABLE QanythingBot DROP COLUMN model

期望行为 | Expected Behavior

No response

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA:
- Docker Compose:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

No response

备注 | Anything else?

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions