添加文件内容表结构
This commit is contained in:
parent
d148d453b8
commit
7064c156a8
|
|
@ -55,6 +55,12 @@ func Init() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = db.AutoMigrate(&FileContent{})
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println("file content table:", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
err = db.AutoMigrate(&Model{})
|
err = db.AutoMigrate(&Model{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("model table:", err)
|
fmt.Println("model table:", err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue