fix: modify region table app_config_group_item field item_value length (#1472)

This commit is contained in:
张启航 2022-12-07 09:49:45 +08:00 committed by GitHub
parent ef74adb800
commit 0d488995f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,7 @@ type ConfigGroupItem struct {
AppID string `gorm:"column:app_id" json:"-"`
ConfigGroupName string `gorm:"column:config_group_name" json:"-"`
ItemKey string `gorm:"column:item_key" json:"item_key"`
ItemValue string `gorm:"column:item_value" json:"item_value"`
ItemValue string `gorm:"column:item_value;type:longtext" json:"item_value"`
}
// TableName return tableName "application"

View File

@ -247,4 +247,7 @@ func (m *Manager) patchTable() {
if err := m.db.Exec("alter table tenant_services_probe modify column cmd longtext;").Error; err != nil {
logrus.Errorf("alter table tenant_services_probe error: %s", err.Error())
}
if err := m.db.Exec("alter table app_config_group_item modify column item_value longtext;").Error; err != nil {
logrus.Errorf("alter table app_config_group_item error: %s", err.Error())
}
}