Przeglądaj źródła

remove uniq index

Ian Edwards 2 lat temu
rodzic
commit
4c9410b1d9
1 zmienionych plików z 2 dodań i 2 usunięć
  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