Ver código fonte

Merge branch 'nico/fixes-for-stack-source-config-name' of github.com:porter-dev/porter into dev

jnfrati 3 anos atrás
pai
commit
9ae4191b8f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      cmd/migrate/main.go

+ 2 - 2
cmd/migrate/main.go

@@ -91,7 +91,7 @@ func shouldKeyRotate() (bool, string, string) {
 
 type StableSourcePopulateConf struct {
 	// Simple env variable that will let us know if we should populate the stable_source_config_id column
-	POPULATE_SOURCE_CONFIG_ID string `env:"POPULATE_SOURCE_CONFIG_ID"`
+	POPULATE_SOURCE_CONFIG_ID bool `env:"POPULATE_SOURCE_CONFIG_ID"`
 }
 
 func shouldPopulateStableSourceConfigId() bool {
@@ -102,5 +102,5 @@ func shouldPopulateStableSourceConfigId() bool {
 		return false
 	}
 
-	return c.POPULATE_SOURCE_CONFIG_ID == "true"
+	return c.POPULATE_SOURCE_CONFIG_ID
 }