MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Install

Function Install

commands/install.go:17–33  ·  view source on GitHub ↗

系统安装.

()

Source from the content-addressed store, hash-verified

15
16//系统安装.
17func Install() {
18
19 fmt.Println("Initializing...")
20
21 err := orm.RunSyncdb("default", false, true)
22 if err == nil {
23 initialization()
24 } else {
25 panic(err.Error())
26 os.Exit(1)
27 }
28 initSeo()
29 resetCategoryUniqueIndex()
30 migrateEbook()
31 fmt.Println("Install Successfully!")
32 os.Exit(0)
33}
34
35// 删除分类中的title的唯一索引(兼容旧版本)
36func resetCategoryUniqueIndex() {

Callers 1

RegisterCommandFunction · 0.70

Calls 4

initializationFunction · 0.85
initSeoFunction · 0.85
resetCategoryUniqueIndexFunction · 0.85
migrateEbookFunction · 0.85

Tested by

no test coverage detected