BookStack
BookStack copied to clipboard
2.2升级2.7执行install报错
请按照一下格式提交issue,谢谢!
-
你当前使用的是哪个版本的 BookStack? 2.2
-
你当前使用的是什么操作系统? ubuntu 18.04
-
你是如何操作的? 2.2升级到2.7
-
你期望得到什么结果? 正常升级
-
当前遇到的是什么结果? 执行install的报错:
2020/04/22 02:04:29 载入sego词典 /opt/bookstack/dictionary/dictionary.txt
Initializing...
table `md_members` already exists, skip
add column `github.com/TruthHun/BookStack/models.Member.TotalReadingTime` for table `md_members`
ALTER TABLE `md_members` ADD COLUMN `total_reading_time` integer NOT NULL DEFAULT 0
add column `github.com/TruthHun/BookStack/models.Member.TotalSign` for table `md_members`
ALTER TABLE `md_members` ADD COLUMN `total_sign` integer NOT NULL DEFAULT 0
add column `github.com/TruthHun/BookStack/models.Member.TotalContinuousSign` for table `md_members`
ALTER TABLE `md_members` ADD COLUMN `total_continuous_sign` integer NOT NULL DEFAULT 0
add column `github.com/TruthHun/BookStack/models.Member.HistoryTotalContinuousSign` for table `md_members`
ALTER TABLE `md_members` ADD COLUMN `history_total_continuous_sign` integer NOT NULL DEFAULT 0
add column `github.com/TruthHun/BookStack/models.Member.WechatNO` for table `md_members`
ALTER TABLE `md_members` ADD COLUMN `wechat_no` varchar(50) NOT NULL DEFAULT ''
create index `md_members_total_sign` for table `md_members`
CREATE INDEX `md_members_total_sign` ON `md_members` (`total_sign`);
create index `md_members_total_continuous_sign` for table `md_members`
CREATE INDEX `md_members_total_continuous_sign` ON `md_members` (`total_continuous_sign`);
create index `md_members_history_total_continuous_sign` for table `md_members`
CREATE INDEX `md_members_history_total_continuous_sign` ON `md_members` (`history_total_continuous_sign`);
table `md_books` already exists, skip
table `md_relationship` already exists, skip
table `md_options` already exists, skip
table `md_documents` already exists, skip
table `md_attachment` already exists, skip
table `md_logs` already exists, skip
table `md_member_token` already exists, skip
table `md_document_history` already exists, skip
table `md_migrations` already exists, skip
table `md_label` already exists, skip
table `md_seo` already exists, skip
table `md_star` already exists, skip
table `md_score` already exists, skip
table `md_comments` already exists, skip
table `md_gitee` already exists, skip
table `md_github` already exists, skip
table `md_qq` already exists, skip
table `md_document_store` already exists, skip
add column `github.com/TruthHun/BookStack/models.DocumentStore.UpdatedAt` for table `md_document_store`
ALTER TABLE `md_document_store` ADD COLUMN `updated_at` datetime NOT NULL
panic: Error 1292: Incorrect datetime value: '0000-00-00 00:00:00' for column 'updated_at' at row 1
goroutine 1 [running]:
github.com/TruthHun/BookStack/commands.Install()
/go/src/github.com/TruthHun/BookStack/commands/install.go:24 +0x15d
github.com/TruthHun/BookStack/commands.RegisterCommand()
/go/src/github.com/TruthHun/BookStack/commands/command.go:141 +0x182
main.main()
/go/src/github.com/TruthHun/BookStack/main.go:26 +0xe5