merge: official v1.5.6 with multimodal storyboard enhancements
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const CurrentSchemaVersion int64 = 28
|
||||
const CurrentSchemaVersion int64 = 30
|
||||
|
||||
const baselineSchemaChecksum = "sha256:open-ai-canvas-schema-v1-20260830"
|
||||
const schemaMigrationAppliedAtIndexChecksum = "sha256:schema-migrations-applied-at-index-v2-20260830"
|
||||
@@ -94,6 +94,13 @@ var schemaMigrations = []migration{
|
||||
{version: 26, name: "channel_model_description", checksum: "sha256:channel-model-description-v26", apply: migrateChannelModelDescription},
|
||||
{version: 27, name: "channel_credit_cost", checksum: "sha256:channel-credit-cost-v27", apply: migrateChannelCreditCost},
|
||||
{version: 28, name: "channel_model_label", checksum: "sha256:channel-model-label-v28", apply: migrateChannelModelLabel},
|
||||
// 官方 v1.5.6 的 28/29 号迁移顺延到 29/30,避免覆盖本分支已发布的 28 号渠道字段迁移。
|
||||
{version: 29, name: "agent_execution_journal", checksum: "sha256:agent-execution-journal-v28", apply: func(tx *gorm.DB) error {
|
||||
return tx.AutoMigrate(&model.CloudAgentExecution{}, &model.CloudAgentEventRecord{}, &model.CloudAgentMessageRecord{}, &model.Task{}, &model.BillingOrder{})
|
||||
}},
|
||||
{version: 30, name: "agent_resource_leases", checksum: "sha256:agent-resource-leases-v29-20260919", apply: func(tx *gorm.DB) error {
|
||||
return tx.AutoMigrate(&model.CloudAgentResourceLease{})
|
||||
}},
|
||||
}
|
||||
|
||||
func migrateChannelCreditCost(tx *gorm.DB) error {
|
||||
|
||||
@@ -17,7 +17,10 @@ import (
|
||||
func Models() []any {
|
||||
return []any{
|
||||
&model.CloudAgentExecution{},
|
||||
&model.CloudAgentEventRecord{},
|
||||
&model.CloudAgentMessageRecord{},
|
||||
&model.CloudAgentCanvasMutation{},
|
||||
&model.CloudAgentResourceLease{},
|
||||
&model.AgentProfile{},
|
||||
&model.AgentLesson{},
|
||||
&model.AgentMemorySetting{},
|
||||
|
||||
Reference in New Issue
Block a user