feat: startup mirgate opt

This commit is contained in:
engigu
2025-09-20 16:59:53 +08:00
parent b6e1b7f872
commit e4639684af
+4 -3
View File
@@ -3,8 +3,6 @@ package main
import ( import (
"embed" "embed"
"fmt" "fmt"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
"message-nest/migrate" "message-nest/migrate"
"message-nest/models" "message-nest/models"
"message-nest/pkg/constant" "message-nest/pkg/constant"
@@ -15,6 +13,9 @@ import (
"message-nest/service/cron_service" "message-nest/service/cron_service"
"net/http" "net/http"
"os" "os"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
) )
var ( var (
@@ -29,8 +30,8 @@ func init() {
constant.InitReleaseInfo(rf) constant.InitReleaseInfo(rf)
setting.Setup() setting.Setup()
logging.Setup() logging.Setup()
migrate.Setup()
models.Setup() models.Setup()
go migrate.Setup()
} }
func main() { func main() {