mindoc-org / mindoc

Golang实现的基于beego框架的接口在线文档管理系统
https://mindoc.com.cn/docs/mindochelp
Apache License 2.0
7.29k stars 1.9k forks source link

关于:数据库升级命令: migrate #301

Closed viaco2ove closed 6 years ago

viaco2ove commented 6 years ago

请按照一下格式提交issue,谢谢!

  1. 你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)? godoc_windows_amd64 0.10.1

  2. 你当前使用的是什么操作系统? godoc_windows_amd64 windows7

  3. 你是如何操作的? godoc_windows_amd64.exe migrate

  4. 你期望得到什么结果? 更新数据库

  5. 当前遇到的是什么结果? goroutine 1 [running]: container/list.(*List).Front(...) C:/go/src/container/list/list.go:70 github.com/lifei6671/mindoc/commands/migrate.RunMigration() c:/gopath/src/github.com/lifei6671/mindoc/commands/migrate/mig +0x16a github.com/lifei6671/mindoc/commands.RegisterCommand() c:/gopath/src/github.com/lifei6671/mindoc/commands/command.go:

main.main() c:/gopath/src/github.com/lifei6671/mindoc/main.go:29 +0x104

6.建议 这行代码请问有什么用的 //migrate.RegisterMigration() 去掉注释就可以运行了

lifei6671 commented 6 years ago

这个命令是老版本合并数据使用的,目前的版本是弃用的。

viaco2ove commented 6 years ago

好的谢谢

qrqhuang commented 5 years ago

本次更新修改了数据库结构,升级前请先备份原程序和数据库。

请问该类升级, 也可以直接通过install更新吗?

现在升级版本后遇到字段不存在的问题。

2018/10/03 01:22:09.900 [E] [DocumentController.go:1284] Error 1054: Unknown column 'T0.auto_save' in 'field list'