فهرست منبع

remove uniq index

Ian Edwards 2 سال پیش
والد
کامیت
4c9410b1d9
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      internal/models/porter_app.go

+ 2 - 2
internal/models/porter_app.go

@@ -13,7 +13,7 @@ type PorterApp struct {
 	ProjectID uint
 	ClusterID uint
 
-	Name string `gorm:"uniqueIndex:idx_name_env_config_id"`
+	Name string
 
 	ImageRepoURI string
 
@@ -31,7 +31,7 @@ type PorterApp struct {
 	// Porter YAML
 	PorterYamlPath string
 
-	EnvironmentConfigID uint `gorm:"uniqueIndex:idx_name_env_config_id"`
+	EnvironmentConfigID uint
 }
 
 // ToPorterAppType generates an external types.PorterApp to be shared over REST