test: add driver and account test
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"github.com/alist-org/alist/v3/internal/model"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var db gorm.DB
|
||||
|
||||
func Init(dbgorm *gorm.DB) {
|
||||
db = *dbgorm
|
||||
db.AutoMigrate(&model.Account{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user