#2872·cloudreve

从V3迁移后操作数据库时间类型失败

Author: krauCreated Sep 5, 2025Updated Aug 31, 2026
Labelswontfix

Describe the bug 从 V3 迁移后无法列出分享, 开启 DEBUG 模式提示错误:

数据库操作失败 (Failed to list shares) (query failed with paginiation: sql: Scan error on column index 7, name "expires": unsupported Scan, storing driver.Value type string into type *time.Time)

To Reproduce Steps to reproduce the behavior:

  1. 按照 文档 从 V3 迁移至 V4
  2. 在主页打开"我的分享"

Expected behavior 分享的文件应该能被正确列出

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows11
  • Browser Chrome

Additional context 迁移后我也无法打开我分享的文件夹, 提示同样的错误

Image

我使用的数据库类型是 sqlite , Cloudreve 的部署环境是使用二进制运行在 Debian12 上