Open boomesy2023 opened 1 day ago
[X] I have read the documentation. 我已经阅读了文档。
[X] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。
[X] I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational). 我确定是AList的问题,而不是其他原因(例如网络,依赖或操作)。
AList
Dependencies
Operational
依赖
操作
[X] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。
v3.35.0
本机存储
数据库切换为PostgreSQL后,第一次启动时可以自动创建数据表以及初始数据,停止再次启动就会出现: github.com/alist-org/alist/v3/internal/db.Init() failed migrate database: insufficient arguments 错误。
拉取最新源码,编译运行
"database": { "type": "postgres", "host": "127.0.0.1", "port": 5432, "user": "postgres", "password": "123456", "name": "sp_alist", "db_file": "", "tableprefix": "x", "ssl_mode": "disable", "dsn": "" } 其他无更改
No response
Thanks for opening your first issue here! Be sure to follow the issue template!
查了 GORM 的issues,找到解决方案: https://github.com/go-gorm/gen/issues/1154。😓
Please make sure of the following things
[X] I have read the documentation. 我已经阅读了文档。
[X] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。
[X] I'm sure it's due to
AList
and not something else(such as Network ,Dependencies
orOperational
). 我确定是AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。[X] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.35.0
Driver used / 使用的存储驱动
本机存储
Describe the bug / 问题描述
数据库切换为PostgreSQL后,第一次启动时可以自动创建数据表以及初始数据,停止再次启动就会出现: github.com/alist-org/alist/v3/internal/db.Init() failed migrate database: insufficient arguments 错误。
Reproduction / 复现链接
拉取最新源码,编译运行
Config / 配置
"database": { "type": "postgres", "host": "127.0.0.1", "port": 5432, "user": "postgres", "password": "123456", "name": "sp_alist", "db_file": "", "tableprefix": "x", "ssl_mode": "disable", "dsn": "" } 其他无更改
Logs / 日志
No response