소스 검색

Update cmd/migrate/main.go

abelanger5 4 년 전
부모
커밋
03f3b3ed54
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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 {
+        // 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
 	POPULATE_SOURCE_CONFIG_ID bool `env:"POPULATE_SOURCE_CONFIG_ID"`
 }