mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Testing for controller/main.go
This commit is contained in:
8
models/migration.go
Normal file
8
models/migration.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
//执行数据迁移
|
||||
|
||||
func migration() {
|
||||
// 自动迁移模式
|
||||
DB.AutoMigrate()
|
||||
}
|
||||
Reference in New Issue
Block a user