feat(admin): 运营数据 - 增加余额消耗统计、通知排序与用户积分汇总
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const CurrentSchemaVersion int64 = 48
|
||||
const CurrentSchemaVersion int64 = 49
|
||||
|
||||
const baselineSchemaChecksum = "sha256:open-ai-canvas-schema-v1-20260830"
|
||||
const schemaMigrationAppliedAtIndexChecksum = "sha256:schema-migrations-applied-at-index-v2-20260830"
|
||||
@@ -157,6 +157,12 @@ var schemaMigrations = []migration{
|
||||
}
|
||||
return nil
|
||||
}},
|
||||
{version: 49, name: "banner_sort_order", checksum: "sha256:banner-sort-order-v49-20261010", apply: func(tx *gorm.DB) error {
|
||||
if !tx.Migrator().HasColumn(&model.BannerAnnouncement{}, "SortOrder") {
|
||||
return tx.Migrator().AddColumn(&model.BannerAnnouncement{}, "SortOrder")
|
||||
}
|
||||
return nil
|
||||
}},
|
||||
}
|
||||
|
||||
func migratePrefixedIDSequenceReconcile(tx *gorm.DB) error {
|
||||
|
||||
Reference in New Issue
Block a user