From 09de686fcfb3196a10df9202c95d6f56575dc005 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Fri, 14 Sep 2018 18:17:05 +0100 Subject: [PATCH] Generic support for populating empty database --- core/database/installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database/installer.go b/core/database/installer.go index 74815761..4beb36d9 100644 --- a/core/database/installer.go +++ b/core/database/installer.go @@ -57,7 +57,7 @@ func InstallUpgrade(runtime *env.Runtime, existingDB bool) (err error) { // Make a list of scripts to execute based upon current database state. toProcess := []Script{} for _, s := range dbTypeScripts { - if s.Version > currentVersion { + if s.Version > currentVersion || currentVersion == 0 { toProcess = append(toProcess, s) } }