Skip to content

Commit 85681af

Browse files
committed
feat: 默认注册表增加 info表和图库分类表
1 parent 4b12ecd commit 85681af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

server/initialize/ensure_tables.go

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
adapter "github.com/casbin/gorm-adapter/v3"
66
"github.com/flipped-aurora/gin-vue-admin/server/model/example"
77
sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
8+
"github.com/flipped-aurora/gin-vue-admin/server/plugin/announcement/model"
89
"github.com/flipped-aurora/gin-vue-admin/server/service/system"
910
"gorm.io/gorm"
1011
)
@@ -59,6 +60,9 @@ func (e *ensureTables) MigrateTable(ctx context.Context) (context.Context, error
5960
example.ExaCustomer{},
6061
example.ExaFileChunk{},
6162
example.ExaFileUploadAndDownload{},
63+
example.ExaAttachmentCategory{},
64+
65+
model.Info{},
6266
}
6367
for _, t := range tables {
6468
_ = db.AutoMigrate(&t)
@@ -97,6 +101,9 @@ func (e *ensureTables) TableCreated(ctx context.Context) bool {
97101
example.ExaCustomer{},
98102
example.ExaFileChunk{},
99103
example.ExaFileUploadAndDownload{},
104+
example.ExaAttachmentCategory{},
105+
106+
model.Info{},
100107
}
101108
yes := true
102109
for _, t := range tables {

0 commit comments

Comments
 (0)