From e033b49ba1e6a08b02e253fde5e91f519d221030 Mon Sep 17 00:00:00 2001 From: icechen Date: Fri, 14 Jan 2022 00:49:01 +0800 Subject: [PATCH] feat: AutoMigrate user_token table --- app/zeus/service/lark/internal/model/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/zeus/service/lark/internal/model/init.go b/app/zeus/service/lark/internal/model/init.go index 1b40bdd..ccc1d74 100644 --- a/app/zeus/service/lark/internal/model/init.go +++ b/app/zeus/service/lark/internal/model/init.go @@ -5,7 +5,7 @@ import ( ) func init() { - err := orm.DB.AutoMigrate(&UserInfo{}) + err := orm.DB.AutoMigrate(&UserInfo{}, &UserToken{}) if err != nil { panic(err) }