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:
parent
97d90662dd
commit
09de686fcf
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue