From 85681af8b87ffc480332a011cd9cd291244ec89b Mon Sep 17 00:00:00 2001 From: pixelmaxQM Date: Sun, 16 Mar 2025 12:07:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=BB=98=E8=AE=A4=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=8A=A0=20info=E8=A1=A8=E5=92=8C=E5=9B=BE?= =?UTF-8?q?=E5=BA=93=E5=88=86=E7=B1=BB=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/initialize/ensure_tables.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/initialize/ensure_tables.go b/server/initialize/ensure_tables.go index 3ef33490..c58227e3 100644 --- a/server/initialize/ensure_tables.go +++ b/server/initialize/ensure_tables.go @@ -5,6 +5,7 @@ import ( adapter "github.com/casbin/gorm-adapter/v3" "github.com/flipped-aurora/gin-vue-admin/server/model/example" sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system" + "github.com/flipped-aurora/gin-vue-admin/server/plugin/announcement/model" "github.com/flipped-aurora/gin-vue-admin/server/service/system" "gorm.io/gorm" ) @@ -59,6 +60,9 @@ func (e *ensureTables) MigrateTable(ctx context.Context) (context.Context, error example.ExaCustomer{}, example.ExaFileChunk{}, example.ExaFileUploadAndDownload{}, + example.ExaAttachmentCategory{}, + + model.Info{}, } for _, t := range tables { _ = db.AutoMigrate(&t) @@ -97,6 +101,9 @@ func (e *ensureTables) TableCreated(ctx context.Context) bool { example.ExaCustomer{}, example.ExaFileChunk{}, example.ExaFileUploadAndDownload{}, + example.ExaAttachmentCategory{}, + + model.Info{}, } yes := true for _, t := range tables {