feat: startup mirgate opt
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user