Browse Source

Merge branch 'nico/fixes-for-stack-source-config-name' into dev

Alexander Belanger 3 năm trước cách đây
mục cha
commit
e6917623ea
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      cmd/migrate/main.go

+ 3 - 0
cmd/migrate/main.go

@@ -90,6 +90,9 @@ func shouldKeyRotate() (bool, string, string) {
 }
 }
 
 
 type StableSourcePopulateConf struct {
 type StableSourcePopulateConf struct {
+        // we add a dummy field to avoid empty struct issue with envdecode
+	DummyField       string `env:"ASDF,default=asdf"`
+	
 	// Simple env variable that will let us know if we should populate the stable_source_config_id column
 	// Simple env variable that will let us know if we should populate the stable_source_config_id column
 	POPULATE_SOURCE_CONFIG_ID bool `env:"POPULATE_SOURCE_CONFIG_ID"`
 	POPULATE_SOURCE_CONFIG_ID bool `env:"POPULATE_SOURCE_CONFIG_ID"`
 }
 }