mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-14 00:06:05 +00:00
* feat(mcp): add Panel MCP task configuration and website binding structures * fix(mcp): correct variable assignment in mcpWebsiteDomain function
18 lines
448 B
Go
18 lines
448 B
Go
package migrations
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/core/app/model"
|
|
"github.com/go-gormigrate/gormigrate/v2"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
var AddPanelMCP = &gormigrate.Migration{
|
|
ID: "20261009-panel-mcp",
|
|
Migrate: func(tx *gorm.DB) error {
|
|
if err := tx.Migrator().DropTable(&model.MCPSetting{}); err != nil {
|
|
return err
|
|
}
|
|
return tx.AutoMigrate(&model.MCPCredential{}, &model.MCPGrant{}, &model.MCPInvocation{}, &model.MCPSetting{})
|
|
},
|
|
}
|