Explorar o código

remove uniq index

Ian Edwards %!s(int64=2) %!d(string=hai) anos
pai
achega
4c9410b1d9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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