1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Generic support for populating empty database

This commit is contained in:
Harvey Kandola 2018-09-14 18:17:05 +01:00
parent 97d90662dd
commit 09de686fcf

View file

@ -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)
}
}