Skip to content

Commit

Permalink
fix: tenant_service_version create index failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Nov 15, 2024
1 parent b781731 commit 44e18b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/model/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
type VersionInfo struct {
Model
BuildVersion string `gorm:"column:build_version;size:40" json:"build_version"` //唯一
EventID string `gorm:"column:event_id;size:40;index:event_id" json:"event_id"`
ServiceID string `gorm:"column:service_id;size:40;index:service_id" json:"service_id"`
EventID string `gorm:"column:event_id;size:40;uniqueIndex:event_id" json:"event_id"`
ServiceID string `gorm:"column:service_id;size:40;uniqueIndex:service_id" json:"service_id"`
Kind string `gorm:"column:kind;size:40" json:"kind"` //kind
//DeliveredType app version delivered type
//image: this is a docker image
Expand Down

0 comments on commit 44e18b5

Please sign in to comment.