file表
This commit is contained in:
parent
8189048e5b
commit
2c7d0d3b09
|
|
@ -51,6 +51,11 @@ func Init() error {
|
||||||
fmt.Println("message table:", err)
|
fmt.Println("message table:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = db.AutoMigrate(&File{})
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println("file table:", err)
|
||||||
|
}
|
||||||
|
|
||||||
err = db.AutoMigrate(&Group{})
|
err = db.AutoMigrate(&Group{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("usergroup table:", err)
|
fmt.Println("usergroup table:", err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue